Currently i am working on push Notification in hybrid application.
Browser based push notification is working properly but while implementing on Hybrid application following issues are occurred::
1). While using InAppBrowser cordova in index.js file, Notification is not working properly. for example the code is
var ref = cordova.InAppBrowser;
ref.open('http://192.168.0.104:8084/IOCL/servlet/memberLoginForm', 'random_string', 'location=no');
and Mobile phone gap app is showing unregisterd.
2.) While I am commenting these lines then Mobile phonegap app is getting registered successfully and notification is also coming.
So if i want to redirect my index page then i have to uncomment cordova lines in index.js file which is given above..
give me some suggestions regarding above issue.
What is random_string? it can't be random, it has to be _self, _blank or _system.
I have tried all things as u suggest but still app is getting browser based notification and not receiving push notification.
as per below attached screenshot, when an alert or alarm is getting generated, notification(alert) is coming in attached screenshot format, but i want to receive it in push notification pop-up format.
When my app is running in background or closed, there is no push popup is receiving.
Thanks in advance.