javascript - Prevent Phonegap notification.navigator popups from closing from touch outside of dialog -


i using phonegap build android application , running problems using functionality not documented phonegap.

navigator.notification.activitystart('title', 'message'); 

the above works fine, , using activitystop() opens , closes loading dialog when need to. problem if user touches screen or hits button loading dialog closes. want remain open until done loading document server in background.

i running same problem navigator.notification.alert , other functions of navigator.notification.

also, prefer not modify native code. know edit phonegap plugin native code achieve this, application cross-platform prefer not native code if possible.

i found solution integrated in application , worked.

in java file of notification alert following change :

=> go alert ()
=> dlg.setcancelable(false);

good luck


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -