Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Open cordova app when clicking

    Help
    2
    3
    1302
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      boriscy last edited by boriscy

      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?

      1 Reply Last reply Reply Quote 0
      • B
        boriscy last edited by

        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.

        A 1 Reply Last reply Reply Quote 2
        • A
          aziz @boriscy last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post