Back to all

Follow-up – Firebase notification tap on cold start (iOS) + RevenueCat plugin

Hello,

I'm following up on my previous message, which I believe may have been missed. I have two questions.

  1. Firebase Cloud Messaging – targetUrl ignored when the iOS app is launched from a closed state

My app (iOS, bundle ID co.median.ios.krlowro) uses the Firebase Cloud Messaging plugin. Each notification includes a data payload with a full targetUrl, for example:
data: { "nid": "82758", "targetUrl": "https://verifio.ai.studio/?rappel=82758" }

Test results on a real iPhone:

  • App in background: tapping the notification opens the targetUrl correctly.
  • App fully closed (swiped away): tapping the notification opens the app on the initial URL (https://verifio.ai.studio/) instead of the targetUrl.

I added logging in my web app to confirm what happens on cold start:

  • window.location is the initial URL, without the targetUrl.
  • window.median is available.
  • My listener median.firebaseMessaging.notificationClicked.addListener(...) is registered, but it is never called.
  • window.median_onesignal_push_opened is never called either.

Questions:
a. Is targetUrl supposed to be applied when the app is launched from a closed state on iOS? If yes, which setting or build version is required?
b. If the tap event fires before my JavaScript is ready, is there a way to retrieve the notification that launched the app (an equivalent of getInitialNotification)?
c. Do I need to rebuild the app to get the latest version of the Firebase Messaging plugin?

  1. RevenueCat plugin and pricing

I'm planning to purchase the plan at $549 to publish my app under my own bundle ID. I want to offer two annual subscriptions through Apple and Google in-app purchases using RevenueCat.
a. Is the RevenueCat plugin included in the $549 plan, with no additional fee?
b. If not, which plan includes it, and at what price?
c. Can my web app read the user's active entitlements through the JavaScript Bridge (to hide a feature for subscribers), and does the plugin support "Restore purchases" on both iOS and Android?

Thank you for your help.