Hi, I am trying to setup notifications for phonegap build using android and ios and I had a couple questions concerning the firing of the event listener for the notification. Here is what I am trying to do: when the user receives the notification I would like to save the data from that notification in local storage to be displayed to the user at a later time. This is problematic it seems since if you close the app entirely (i.e. by killing it), while you may still receive the notification the event listener should no longer be running making it impossible to save the data. Am I correct in this assumption? Second, should the event listener still be running (in the case by which the user has simply put the app to the background instead of actually killing it), will the event listener still execute the code even though the app is not in the foreground OR will it wait to execute the code until the app is reopened, OR will it not execute at all? Than you for your time and I am looking forward to hearing back from you.
Please sign in to leave a comment.