BBM & & bbUI

Hi, here is my new number (yes another ) at the prompt to register with BBM, if the user allows it, I need the application to add new menu items to the menu (invite you to download and chat with contacts in bbm) and if the user cancels the registration must add a record with the BBM menu to the menu item, but once that one of these events occur I am stock with the menu items I already have, it does not add the new.

I tried to use ondomready and onscreenready without success events (prolly not much things are done). The call to register with bbm javascript is in the head of my file index and its call element loading the app for the first time


Is this screen menu.html I need new menu items added once it loads, but at the moment I am prompted to save the screen is already loaded and the changes take effect.

function registerWithBBM () {
    // Create callback invoked when access changes
blackberry.bbm.platform.onaccesschanged = function(accessible, status) {
    if (status == "allowed") {
        // Access allowed
        var menuItem = document.getElementById("bbm-menu");
        menuItem.innerHTML += '
Chat with Contact
' menuItem.innerHTML += '
Invite to Download
' } else if (status == "user") { // Access blocked by user menuItem.innerHTML += '
Connect to BBM
' }};

or

blackberry.bbm.platform.onaccesschanged = function(accessible, status) {
    if (status == "allowed") {
dataOnTheFly_initialLoad(element);
}

where dataOnTheFly =

function dataOnTheFly_initialLoad(element) {
    var menuItem, lista = element.getElementById('bbm-menu');
    menuItem = document.createElement('div');
    menuItem.setAttribute('data-bb-type', 'menu-item');
    menuItem.innerHTML = 'Invita a Descargar';
    lista.appendChild(menuItem);
}

Place the register w / JS BBM file on screen menu.html throws an untrapped exception

Currently dynamically adding items to the menu in this manner is not supported in bbUI.js. If you want to do specifically on a SmartPhone simply use the API calls once you know if BBM is allowed or not. Just be careful not to use clearMenuItems as they do in the code example 's actually bbUI doing it on the phones when it does the initial installation.

https://bdsc.webapps.BlackBerry.com/HTML5/APIs/BlackBerry.UI.menu.html#.AddMenuItem

There was discussion on this for the Playbook as well, but it's still a work in progress.

Tags: BlackBerry Developers

Similar Questions

  • bbui action bar is not displayed

    Hey guys,.

    I'm new to bbui and may not know how to work the stock bars.

    I just put a definition of simple screen that works with the exception of the action bar. It is not using firefox, chrome, or Simulator. Did I miss something?

    Players
    Matches
    Players
    BBM

    see you soon

    OK, first attachment.

    It's the triangle because it is subject to the approval process. as soon as it is approved, everyone will see, here's the example is approved:
    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/add-exception-pop-up-on-first-TI...

    and to do so in Rich Text, simply click on the 5th icon (tree), just before the movie icon, then click Browse, select your image, then click on insert image, made.

    I also develop something and I don't use firefox because I don't know how to use it in the debugger, instead, I use chrome/chrome to serve as an inspector to debug. I never use browser to see a preview of my application.

    application with webworks development takes a lot of time? Yes, you could be rite. but there is a way of development more effective and safe time, follow this:

    Update your BlackBerry WebWorks application without recompiling

    Basically, it works like this:

    1. Create your project as usual
    2. "in the config.xml file to replace with something like this: http://192.168.1.125/notes/index.html ' / > where 192.168.1.125 is my server local apache
    3. in my case/var/www/notes in my local server apache, I put all the file from www
    4. deploy the application on my Z10
    5. debugging
    6. When I need to change something, I just change some necessary in my local web server, never touch deployed Z10 app ever, unless I have to change something in the file config.xml or add/remove plugins

    naked in mine, it's the former article of 2009, but it works, read this article to the end also comments, one of the developer shows its implementation:
    http://dborba.com/wow-no-more-re-packaging-when-testing-HTML5-apps-on-your-device/

    good hunting

  • BBUI.js

    I started using webworks. I want to add the BBUI.js in the folder webworks... But I do not know where to paste. Please help me. I use webworks 2.0.0.54

    You can place the BBUI resources anywhere, even if most developers tend to have folders for specific categories (i.e. a folder 'js' for their Javascript files), a folder 'css' for their style sheets, etc.

    The important part is that when you reference the files in your project, you use the appropriate path for which you have placed the files.

    There are a number of samples using BBUI here:
    https://github.com/BlackBerry/BB10-WebWorks-samples

    Maps, Toast, bbm, to name a few.

    Your HTML5 project must be contained in the root ' www' folder.

  • Group BBM WebWorks Dev?

    Y at - you part of a group of developers WebWorks BBM? If so, you can invite me? If this isn't the case, who wants to start a?

    UPDATE

    A new BBM group has been created. Please join by scanning the QR Code.

    BBM - group Dev WebWorks

    Discuss the development of WebWorks for PB & BB10, bbUI.js, tips, How - to's and more. Share strategies go-to-market for your applications.

  • Subscription of a BBM Messenger

    I bought the subscription of e-mail BBM but still not been activated. I still can't use what I paid for. I paid for the service lets you send photos timed, but after more than 48 hours it still does not work. can you please help!

    You should contact the developer of the application for the service. This is not an Apple product.

  • why I can't install BBM on my Tablet?

    Hey team HP, I have a little problem with my tablet, I tried a lot to download BBM on my Tablet [HP Slate7 - 2801]

    and always say [your device is not compatible with this version] I also have this problem with instagram...

    hope you help me...

    really I need this application in my table

    Thank you...

    Hello and welcome to the HP support community!

    Your tablet doesn't have a GPS inside, and the authors of the applications you mentioned said the store Play to allow only the program go to devices with this chip.

    There is a solution called 'APK Extraction' or 'side loading' app.

    Extraction of the APK is not officially approved by HP. If an application is not available in a specific area which is a restriction that the developer has put on the application. Such a restriction could be due to the licensing of content.

    There are two main steps in order to extract the APK-

    (1) extract the application of another Android device, or download the APK file directly. If you download the APK file also, please be very confident of the Web site. Because you will be "forcing" the application to install and don't not download through Google, it is possible the application has been infected by malware or otherwise damaged.

    To perform step 1, first install the application on another Android device, and also to install an "APK Extractor" application. (there are several to choose from and available for free in the game of Google store).
    Once the application is extracted, copy the file to a MicroSD card, or use another means of transfer for example transfer or by e-mail.

    Insert the MicroSD card into your 7 Slate, or download the file.
    You may need to install a file browser to locate the file on your tab 7. These are also available in the store from game Google free.

    You must change a setting of security on your tab 7; Click settings, security and place a check in "unknown Sources allow installation of applications from unknown sources. You will get a warning about the potential of malicious software by changing this setting.

    Once the security setting has been changed, find the APK file and simply "click" on it to open it. It will install everything as it was downloading from the game store.

    I will state some things well-
    (1) this process is not approved by HP. I am a volunteer here and not an official representative of HP.
    (2) If a request is blocked in your area, then installation can cause problems or even violate certain laws or license.
    (3) download an APK on a suspicious Web site could introduce viruses/spyware/malware or other undesirable behaviors. Do not download APKs for files that are not free Google game like this would be piracy.
    (4) installation of an APK that "requires" GPS may not work fully, although in many cases, you can manually enter in your location and it will work.

    WyreNut

  • BBM BBM video call

    Hello

    I use a blackberry classic in the Germany provider (medion mobile / e-plus) and have problems that I don't see the bbm video call button.

    I tried to disable and active 'bbm-call on mobile networl '.

    and I tried to move the network and restart the device.

    also, I have reset the phone without a SIM card.

    Nothing helps! What can I do?

    Thank you

    Hello, Gregor

    You can use BBM video calls to other devices BlackBerry 10 only for the moment, no other platforms (iOS or android). You will see icon BBM of voice calls if your BBM contacts uses no 10 BlackBerry devices.

  • BBM BBM on Windows 10 polls for phones

    I'm usin BBM on my 5230 Lumia double sim.

    Yesterday, that I have updated to Windows 10 for phones (Preview).

    All my previous Apps on Windows Phone 8.1 work fine with Windows 10.

    Except BBM.

    BBM starts with the configuration and after a few seconds, there is just the blue background screen...

    Is there any help?

    Or y at - it a new version of BBM for Windows 10 for planned phones?

    Hi @sihiver

    Windows 10 for phones is still in preview, you may encounter problems unfortunately.

    The only recommendation I can make is trying to remove and reinstall BBM or consider restoring your device with Windows 8.1.

    Thank you!

  • BBM BBM Desktop Window 8.1 Client surveys?

    I am a BBM on Android newbie.  I find it useful for applications of instant messaging by using several platforms. I am quite satisfied with BBM on Android and would be very grateful if I could also access the BBM from my Office Windows 8.1.  Something along the lines of AirDroid that allows the user to access their SMS via the device Android, a dedicated application or web client that works directly on the message store (assuming that there is a message on the network store?).   I could not find recent articles on this subject and apologize if it's already answered elsewhere.

    Thank you

    David Baril

    Almone WE

    Thank you.  Practically, that answers my question.  BBM is specific to the device, unlike these IM like WhatsApp or FB Messenger apps, where the message store is linked with an ID that is device independent and probably stored "in the cloud" (or server-side as it was formerly called client-server).

    Sounds like BBM is closest to SMS the message store does not reside on the device (or at least that's the "check database" which may or may not be mirrored "in the clouds").  I guess the AirDroid and other apps Android SMS access the SMS store via an API that is intrinsic to the Android kernel.  Is there an API to the message BBM Android store that would allow an application like AirDroid to access?  If such an API does not yet exist, wouldn't relatively simple to implement (with security controls appropriate of course)?

  • BBM BBM was missing in Store

    Hello, my name is Rizal Faisal Akbar, but call me LASI.

    I'm from the Indonesia. I want to ask questions about the application of BBM surveys.

    Today at 18:00 (the Indonesia time) I heard from my friend that BBM was missing in Windows store. And after, I check in the Windows store and confirm the Windows store is missing.

    So, you know about it? Can you explain?

    My device is Microsoft Lumia 535 DS with OS Windows Mobile 10 build 14371.0 and I'm Windows Insider Fast Ring

    Thank you. Sorry for my bad English.

    Hi @rizalfatopper & @adamBOMB_ca

    BBM is available on devices running Windows Phone 8 and 8.1 of Windows Phone only

    I apologize for any inconvenience that this may cause and encourage you to share your comments with @BBM.

    Thank you

  • Consuming APIs push read and deliver the message through BBM surveys

    Hi all

    This is the problem, I really hope that you can give me help or at least a hint guys...

    I have an online store, and I have a server to run my App chatbot that I use chatbot handling some customer service taks and act as store customer assistant helps when they like to ask or order stuff from my store.

    currently my bot run using api telegram handling in and outbound message, how ever many of my clients use BBM as their main email applications.

    I want to know, if there is a way I can use push api to act as bot api telegram, im sory if I miss understand how push api works, because that I really really new in blackberry application development.

    I understand that BBM is like PIN messaging function, so first idea who come in my head is to buy a new phone, BlackBerry or android phone, then make this phone as a bot with the creation of some applications to manage incoming BBM messages inside and send back throug push API, but I think that the idea is really not effective or worse probably misslead.

    really appreciate all the help you guys

    Cherrsss...

    The Service of BlackBerry Push to push messages to BBM.  You can push messages to your own application that runs on the device.

    BBM has no API to programmatically read incoming messages.  You can programmatically create working drafts of BBM messages to send, but there is user interaction required to send the message.

    You can watch to BBM circuits.  You can use a channel of BBM to send messages to your subscribers and they could send messages to you.  There is a web interface for BBM channels, but also a plugin of Hootsuite.  It does not support the local app that you describe, but can provide what you need.

  • Framed Classic BBM blackBerry does not

    My BBM app works fine, but the sidebar function shows no contacts or the convos. I prefer to use the menu hub / side.

    I discovered the problem.  At the top of the QuickView screen, there is an arrow down which allows you to choose a subfolder BBM.  By selecting this folder, the conversations and contacts of current charges are filled in the list (which was empty).

    Thank you for giving me advice on reboot the device however gives me useful options, go ahead.

  • Polls BBM Torch 9810 BBM stuck on the implementation of surveys BBM

    Hi all

    I am fairly new here and on blackberry phones. I use bbm on my Nexus4 for a while now and bought a Blackberry Torch used to use with BBM 9810. My problem is that whenever I set up BBM it is stuck on "setting up BBM. I looked on the internet and tried everything I could to restore to the factory settings, update to the latest BBM, password changing to include letters, letters below, numbers and symbols, but nothing seems to work.

    Does anyone has this problem after doing all this (the forums more some of the thigs above seem to work, but not for me).

    Any information would be appreciated.

    Thank you

    A plan of BIS (BlackBerry Internet Service) - is a dedicaed to plan special data for legacy devices BlackBerry (Running OS 7 and earlier versions). You must have a BIS plan to be able to communicate and have access to the BlackBerry Services as Emial, BBM, BlackBerry Protect messaging Apps etc.

    Regular data plan or WiFi does not work. I suggest that you contact your network provider, they can help you with this question.

  • History of cats BBM get BBM of previous BB to new BB

    I just got my new classic BB and I was wondering if there was a way to restore historical cats BBM product of my old camera (BB Q10) to my new.

    I saved my BBQ10 on BlackBerry link - I double checked that I had chosen to save the data from BBM surveys.   I plugged the new classic and choose "restore" data to the new device.

    After restoring data on my phone, I opened the BBM and what prompted my BB ID is associated with my old camera and asked if I wanted to "BBM report."  I chose "BBM report" and the closed BBM app.  I opened again and was able to use BBM; However, none of my cats, my previous phone BBM history were restored to my new camera.   Now, because I had "spent BBM" BBM on my old phone (Q10) has is no longer a all entries, as in no contact, no history of cats... it does not work.   Even if I "switch BBM" yet once back in my old camera, all the cats stories will be wiped again.

    As I backed up my phone and my BBM data on BlackBerry link, I should in theory be able to restore the proper chat history?  If Yes, can someone help me to access it?  Or is it just gone now?

    If anyone can help that would be great...

    In addition, I would like to add that I don't remember having this problem before, when I got new features... If I remember correctly, I had my history of cats.

    Hello!

    This problem is quite annoying, I really want to use BBM, but have experienced the same thing when I had to put my device due to an exchange of the guarantee. Even though I followed the suggestion of BB Link to enter the BB ID on the 'new' device before you begin restoring data, BBM is just blank after opening for the first time. As the news stories of CAT are accumulated in the meantime, I did not still trying to recover the data, but I still have negative feelings about this sometimes.

    However, recently I came across a suggestion that is described here:

    https://bb10qnx.de/2014/11/backup-and-restore-BBM-chats/

    It basically says that you should not only enter your BB ID on the new/empty device until backup is restoerd, but also open once the BBM and enter your ID here, too--before restoring the backup.

    As you still have your backup, you can try this method if you want - it's maybe really the key to be able to transfer the history.

    Another 'workaround', which is also recommended when using multiple devices: you can create ba 'personal group", where you can add all the pins of your devices. Group discussions are always sync!

    Best regards

    Hans-Jürgen

  • Video call of BBM

    Hello everyone! I heard about videoconferencing in bbm, but I can't find any possibility to do this with my contacts. They use bbm in iphone and once I received an unexpected video call from them but then the video call has been interrupted without reason and without giving me time to answer. I asked them how they managed to do it and they told me that they did nothing except try to contact me via the option normal call on bbm. If someone can tell me, it is possible to make calls video on bbm and if it is how can I do? Im running OS 10.3.2836 on my passport. Any advice will be useful. Thank you!

    Oh really? But why I received a video call to them and a second disappeared? Probably was a problem, in any case thank you for your answer

Maybe you are looking for