Worklight 6.1: how to check blackberry connectivity - blackberry

in Worklight 6.1, as:
WL.Client.isConnected is deprecated
WL.Device.getNetworkInfo available on Android and iOS
How to check the connectivity for Worklight server from a Blackberry Device?
I need this to sync my data when my app is connected (which means that the worklight server is responding).
Please don't tell me to invoke a procedure and check the response status :S

Use WL.Client.connect(options) For Extra Infromation check IBM Info Center

Related

Iphone build not connecting to Mobile First Server after Migration to 7.1 from 6.1

I migrated Worklight 6.1 project to Mobile First 7.1
In 6.1 all builds(Android, Iphone and Windows) working fine but in 7.1 Iphone build is not working.
I given connectOnStartup : true to check connection with server.
Whenever I am going to launch Iphone build its giving error "The sever was unable to process the request from the application. Please try again later".
But for Android build is working smoothly. Observed migrated Iphone build not getting internet access(Slider images on landing page are not loading even though their path given as url) but device has full high speed internet access.
Below things taken care:
There is no internet problem
Both iphone and server reside in same wifi network
Tried with making Customize URL in iphone
I given connectOnStartup : true to check connection with server.
This is a deprecated API and you should stop using it... Instead use the WL.Client.connect API if you really need to connect to the server on startup...
As for the connectivity issue, I suggest that you will check for the following:
You say you're making a "customized URL". I suggest that you will confirm you're actually using the correct URL for your server
Verify that in wlclient.plist you indeed have the correct server settings
If you are testing on iOS 9 or above, make sure your server is TL2 1.2-ready and your iOS application is configured for ATS: https://mobilefirstplatform.ibmcloud.com/blog/2015/09/09/mobilefirst-platform-support-for-ios-9/

Blackberry support for worklight pushnotification

I read in the worklight v 6.1 in ibm information, that the worklight pushnotification is not supported in worklight in blackberry . Any idea how to implement push notification in blackberry using worklight.
Since Worklight does not support Push Notifications in BlackBerry 6,7 and 10... You can't use any Worklight tools or APIs for that.
What you will need to do, is read the BlackBerry documentation regarding their Push Service for WebWorks-based apps and experiment with the implementation within your app: http://developer.blackberry.com/html5/documentation/v2_1/push_service.html

Blackberry App developed with worklight not working on gprs but working on wifi

I have developed app in worklight and build it for blackberry environment which is working fine on wifi and I'm able to contact server which is having a public IP but whem I'm *trying to use GPRS and connect the app to the server the app is unable to connect to the server.*Any solution for this problem???
After the app failed connecting to the server, close the app and type alt+LGLG, this should open the device's log. See if you find anything Worklight-related in the log.
You can also verify that the Worklight Server is indeed open to the public by trying to load Worklight Console in your device's browser.

Setting up Blackberry Project (above version 5) in Phonegap using IDE to implement push notification

I am developing a mobile app using phonegap for the Android, iPhone and Blackberry platforms.
I need a notification to be send from a Java EE server to BB when a new message gets created. This means the Java EE server pushes this notification and the BB mobile device gets the notification. I need to put a push notification feature in my app, so that my server can poll my app and then put the notification if there is any new notification.
On browsing the net I found out that there are plugins for Phonegap for both iPhone and Android, which help in showing the notification. But I did not find any useful resources for Blackberry.
I am following http://docs.blackberry.com/en/developers/deliverables/30152/Push_Service_SDK-Installation_and_Configuration_Guide--1648741-0622124431-001-1.1.0.16-US.pdf.
However, I'm facing some environment challenge (setting up the SDK in the IDE for Blackberry in Phonegap).
To use that SDK the IDE is needed, but I think using ANT is not possible. I need some examples for creating the Phonegap project for Blackberry using the IDE.
I want to get a push notification in Blackberry using phonegap. Can someone help me in performing this? Any links that explain this with HTML or JavaScript would be really helpful.
Phonegap does not provide plugins for Blackberry. Instead BB already have an API for HTML5 for push notifications (BIS/BES). They are a bit limited comparing to the native code: for example there is no sound support.
You can use Blackberry Webworks SDK and Ripple as BB emulator. The only problem is that Ripple does not support push notifications and in the end you have to test your app on a real device anyway.
For more information take a look on the tutorial here:
http://www.pushwoosh.com/programming-push-notification/blackberry-html5-webworks-push-notification-sdk/
I am not sure whether Phone Gap has the plugin to support BlackBerry. I think Phone Gap forums might be a better place to post this question.
Thanks
Naveen M

How to programatically lock BLACKBERRY device(6.0)?

how to lock blackberry device 6.0 pro-grammatically?
there is an API called
ApplicationManger.locksystem(true)
but its diprecated in 6.0
According to the BlackBerry OS 7.1 API documentation the parameter force is depricated, the API call should still be valid. Have you tried it?

Resources