Open cordova app when clicking
-
I’m building an app with quasar and I’m using firebase to send notifications I would like to be able to open my cordova when clicking a notification, could someone help me. My service worker notification code is
messaging.setBackgroundMessageHandler(function(payload) { if(payload.data.status == 'calling') { return self.registration.showNotification('New', {body: "New call"}); } });
what are the options that I should pass to
showNotification
make my app open? -
Found that you need to configure the intent, you can check this link http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser, you should edit the
cordova/config.xml
to configure your app. -
@boriscy have you explain your solution on your case., this link http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser confusing for me.,
I look forward to your reply… thansk