12-29-2012 03:48 PM - edited 12-29-2012 03:54 PM
I was trying to invoke BBM through:
blackberry.invoke.invoke({
target: 'sys.bbm.sharehandler',
action: 'bb.action.SHARE',
data: BBMText,
mimeType: 'text/plain'
});
However this doesn't seem to work with unicode characters. Is that normal? Does BBM work with Unicode? Is there a character limit for the data being passed in?
Also since I don't know anyone with BBM, how can I test this out? It seems like it will work...
Thanks.
01-03-2013 11:12 AM
Unicode characters are supported.
You can test this out using the BlackBerry 10 Dev Alpha Simulator. The latest version includes a BBM Server Simulator, so you can simulate the use of BBM across two instances of simulator.
Look at the README.txt file located in .\install_dir\C:\Program Files (x86)\Research In Motion\BlackBerry Dev Alpha Simulator 10.0.9\BlackBerry10Simulator-BB10_0_09-1673\bbm for instructions.
01-03-2013 04:11 PM
Hi Mark,
Thank you for the information and for pointing me to the right direction. I believe I got everything setup to test through the simulator, however I am getting an error "Associating BBM with your BlackBerry ID". It just goes on forever with nothing happenning.
I created a new BlackBerry ID and signed in through settings. The BBM server is running and connected through the Controller. However right now I just get the spinning process icon with "Associating BBM with your BlackBerry ID". One thing I noticed though, the simulator is having a hard time getting the time (though date is correct). I tried auto set but it didn't work so I tried manual... no difference.
This problem didn't happen with the Dev Alpha (though I didn't need to run a BBM server).
Any clue how I can solve this issue?
Thanks.
01-03-2013 04:18 PM - edited 01-03-2013 04:18 PM
What happens when you try to manually set the time? Do you see any activity on the BBM Server Simulator side?
Make sure there isn't any local firewall/vpn software blocking the connection.
01-03-2013 05:03 PM - edited 01-03-2013 05:30 PM
Manually setting the time there is no change. I turned off the Windows Firewall (just for now).
The only activity besides the initialization is:
Layer = EP2P, Event = Notification, Devicepin = <Device Pin>, Coverage = ON
(when setting up the Controller)
Then later on, (about 30 sec to a minute in)
Layer = RCP, RCP Connection from: <Device Pin>
Layer = RCP. RCP authenticated <Device Pin>
Layer = EP2P, Event = Notification, Devicepin = <Device Pin>, Coverage = ON
On the simulator it just shows the spinning progress icon and "Associated BBM with your BlackBerry ID".
Update: IF I wait a while (30 minutes) and then go back and switch tasks. It would then give a "Temporary Server Error"... which isn't temporary because it just won't start up again. There are some DEBUG code going through the server. The only thing which looks like an error is:
LAYER = BBM, decryptWithSessionKey - Illegal key size
I am using Sun Java 6 JDK instead of 7 (the version reocmmended on the README.TXT). I have copied the JCE 6 policy files to the security directory.
Any other ideas on what I can try? Thanks.
01-04-2013 07:57 AM
Look at your Windows locale settings - It must be set to English(US). Change it, restart your PC and try again. This solved the same problem for me.
01-07-2013 01:42 AM
Thank you for your suggestion Krum, but my region has always been English (USA). Yeah, even here in Canada. :-)
01-11-2013 02:08 PM
Can you try using the new BlackBerry 10 Dev Alpha simulator that was just release today? It contains a number of BBM simulator fixes.