I am developing a BlackBerry application in PhoneGap, Cordova. I need to run the application in the background to send the SMS at an interval of 15 minutes.
Is this possible in a PhoneGap project?
If you are making a project for BBOS based devices (6.0, 7.0) then this can be done by adding an entry to your config.xml - http://developer.blackberry.com/html5/documentation/rim_background_element_1265316_11.html.
If you want the app to remain running in the background when the user closes the app, you will need to trap the back event.
Related
I'm using MobileFirst Platform 7.1 with Paho MQTT (Internet of Things), I'm trying to implement a Hybrid Application with mqtt for Android and iOS.
I have tested the app in Android and it is working as expected, when it is in the foreground and background,
While in iOS, it does not work as expected. It works correctly in the foreground, but not in the background. I was testing using the iPhone Simulator of XCode and iPhone 6.
I found a project which implemented with MobileFirst and MQTT. from https://developer.ibm.com/mobilefirstplatform/documentation/integration/mq-telemetry-transport/
i am just adding host and port number and adding android,ios environment.but same problem facing android working iOS not.
at this moment what can i do ?
UPDATE:
in iOS, it works correctly foreground.but when i send background the "MQTT client" connection lost form broker.
this method fire :
this.client.onConnectionLost = function() {
alert("Connection lost!");
};
on the other hand , android , windows it work perfectly for foreground and background
For example :
I have a room there have a PIR sensor. it work like publisher . my application user is a subscriber .
when user out the room that that time she open application,subscribe and
send application background.
anytime someone entire the room that time , she will be get a notification.
Details on how to run in the background on iOS can be found here. This link also lists the actions that Apple allows to run in the background, if your app does not meet those criteria then it is likely to get bumped from the app store.
The list also shows which UIBackgroundModes to place in your Info.plist to flag that your app needs background access.
I can not found at least one way to mange it for hybrid application ,tried with several way ,failed and mange it easily for native application MQTT iOS background.
Todos
Plan support for new platforms (iOS, Windows Phone)
Add background service support in Android version
more check this link https://github.com/arcoirislabs/cordova-plugin-mqtt
I want to run my html5 audio player which is online streaming radio link to be played even if the device is locked (sleep mode) or the app is turned in background while opening another app. The player works very well when I start it as web app from Safari browser but now after I have built it for ios using Phonegap Build when the device is locked or the user switched between the apps in the device then the player stops. Is there any solution for this? Maybe a plugin?
Here is my web app in github: https://github.com/albpower/radio-pendimi
I have solved this problem using Background-audio ios Phonegap plugin. Here you can find more informations about plugin and usage from official Phonegap plugins directive.
https://build.phonegap.com/plugins/1193
I'm using ripple + cordova to create apps for android and blackberry (os 6 and 7) and everything works fine - as long as I select apache cordova as the platform. However, in order to build and test on a blackberry (simulator or device), I need to go into ripple's webworks mode. This is where the problem lies.
Ripple doesn't fire the deviceready event in this mode, neither does the compiled app. I even moved the www folder of cordova's sample app for blackberry and same thing happens. No deviceready event fired. Instead, ripple is firing another event:
webworks.handset :: Initialization Finished (Make it so.).
What am I doing wrong and what is the correct process? Any help is appreciated. Thanks.
I've been informed that the webworks and cordova modes of ripple are two separate entities and are in no way connected. The actual process involves using the command line/bbwp commands as specified in the cordova getting started guide for blackberry.
Is there an API in OSX that I can use to launch my application when users open any app? Something like a global App Launched event?
No. There is no meaningful multitasking functionality in iOS API.
i am developing an application for blackberry i want alarm to ring on a specific date please help me out how to do it.
Just a short tips:
Write background application to make alarm and UI application to configure things
UPDATE
Just extand you application class from Application instead of UiApplication
See examples:
BlackBerry background applications on StackOverflow.com
Also, in Eclipse, in Project Properties->BlackBerry Project Properties->Application you can set process to be system module (hide app icon on device), as well to be start-up.
Save configuration to Persistent Store
Blackberry - application settings save/load
Use different types of notification (from Dialog to Alarm)
Blackberry - How to use notification icon in statusbar
Notification Service for Blackberry OS 4.5 application
Add a notification icon at the status bar in BlackBerry JDE 4.5.0
BlackBerry - Reminder and SMS feature implementation