Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Running service in background when app is not active , is it possible?

$
0
0

I have tried this katzer's background plugin to see if i can execute that geolocatin plugin !! But fr some reason that normal katzer plugin's test notification is not showing !!

I did this in my ionic platoform ready

cordova.plugins.backgroundMode.enable();

then below

cordova.plugins.backgroundMode.setDefaults({
title:  'text',
ticker: 'text',
text:   'text'
})

Then below....

cordova.plugins.backgroundMode.onactivate = function () {
   //  I tried some previous working geolocation stuff here.
}

With all this , i think that background mode notification should have appeared... bt it doesn't !!

what is missing ?

Thanks a lot for your reply ! and is that powermanagement plugin only fr android ?


Viewing all articles
Browse latest Browse all 228595

Trending Articles