Auto updating blackberry application - blackberry

I am a blackberry software developer and my question is about blackberry. I want my own blackberry application to perform version checks with a server, and when the application's version is updated on the server I want this application to download the new version automatically from the server.
Is it possible? Can it be developed?

Check application version on application startup if new update found exit application and open browser that directs to download link..
if(checkVersion()){
Browser.getDefaultSession().displayPage("http://download.com/file...");
System.exit(0);
}
checkVersion() {
// get version information from server
// compare with working copy
if (update)
return true;
else
return false;
}

Related

Electron framework - From where electron downloads the new update

I am new to the electron framework.
I have a query where I need to deploy the new version for my app for mac and window?
Do I need to publish my application on some app stores?
I am working on a ToDo app, I have created .exe for the application, Now I want to make some changes to the app and let the app update automatically, for this where I need to upload my application?

Is it possible for an iOS app so the a list of other installed apps?

With „getPackageManager“ it is possible to get a list of installed applications on Android.
(How to get a list of installed android applications and pick one to run)
But: Is it also possible for apps to see a list of installed apps on iOS smartphones? And if yes, is it possible to hide an iOS app, so that it can‘t be „seen“ by other apps in this list?
There is no way to get a complete list of all apps installed, but if you know what you are looking for, you CAN (probably) check if a specific app is installed by testing if you can open that app's URL:
let otherAppURL = ...
if UIApplication.sharedApplication().canOpenURL(otherAppURL)
{
// It's installed
}
else
{
// It's not installed
}

How to open another iOS app from my PhoneGap app?

I have a PhoneGap application, which needs to communicate with an external iOS app on the same device. The external app will do some special processing, and return a unique value back to my PhoneGap app. PhoneGap app then uses this unique value to do some processing internally.
Given this use case, I have two questions
How do I open another iOS app from a PhoneGap app?
How do I return to the PhoneGap app with some data from the external app
I have searched so far, but haven't found very relevant documentation. I have also tried to open another app using appname:/// strategy, hasn't worked for me.
Any help will be appreciated. thank you!
Cordova has wide range of plugins for performing different operations.
For opening external application you can use: https://github.com/lampaa/com.lampa.startapp
If you want to open an application without using any plugin:
var iOS_specificUrl = 'custom_url_scheme://url-to-reach?parameter1=val1';
window.location = iOS_specificUrl;
or you can use inappbrowser
var iOS_specificUrl = 'custom_url_scheme://url-to-reach?parameter1=val1';
window.open(iOS_specificUrl, '_system');
Let's say you have app1 and want to open app2 then you need to assign custom url to app2 and for that you need to make changes in app2 configuration xml file; and to do this you can use following plugin:
https://github.com/EddyVerbruggen/Custom-URL-scheme
Or if you want to open third party application then you need to get in touch with application provider for getting custom url.

How to stop auto load on cordova meteor?

I am creating ios app using meteor and i have all the assets in the public folder, but still my app downloads assets from the server when it loads for the first time.
I am trying to stop auto reload or auto update on cordova.
I have tried this but didnt work.
if (Meteor.isCordova) {
Reload._onMigrate(function (retry) {
return [false];
});
}
I see two possibilities :
onMigrate
Use this on client side (/client folder)
Meteor._reload.onMigrate(function() {
return [false];
});
AUTOUPDATE_VERSION
$ AUTOUPDATE_VERSION=abc meteor
You can set the AUTOUPDATE_VERSION environment variable to something static, it will prevent autoupdate.
See Meteor Doc.
Edit note : mdg:reload-on-resume doesn't work on iOS. Issue #72.
Have you looked at the reload on resume package? Not on IOS at this time, sorry!
Add it to your Meteor app with meteor add mdg:reload-on-resume. This
package changes the behavior of Meteor's hot code push feature on
mobile devices only.
Normally, your app will update on the user's device as soon as you
push a new version. This process is always smooth in a desktop web
browser, but might momentarily interrupt the user's experience if they
are on a mobile device.
With this package, the app will only update itself to the newest
version if the user closes and re-opens the app (hence, it "reloads on
resume").
The Appcache package will stop your app downloading when it first loads
Once a user has visited a Meteor application for the first time and
the application has been cached, on subsequent visits the web page
loads faster because the browser can load the application out of the
cache without contacting the server first.

Running BlackBerry application automatically directly after installation

I have written an application that injects some menu items in other BlackBerry applications (for example a "bookmark this page" menu item in the BlackBerry browser). I have configured the application to be run automatically at startup (of the device) so when the device starts, the menu items are installed in the other applications.
However, I would also like to have my application started directly after installation (via OTA), so the menu items are directly available to the user. Is there a way to accomplish this without having the user to reboot the device or manually start the application after installation?
Autostart applications should run
automatically after they have been
installed. What could have happened
is the application tried to autostart,
but didn't have the permissions to do
what it wanted and failed with a
ControlledAccessException. Often this
can be seen as the application failing
to start, but in fact it did start but
just wasn't allowed to do what it
tried to do.
Check the event log on the BlackBerry
(alt+lglg). You should see an entry
for your application being started
after it was installed.
Mark Sohm BlackBerry Development
Advisor www.BlackBerryDeveloper.com
BB Support Community Forums :Can we automatically run the application after install

Resources