Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Enable URL Key Specification #75

Open
sonatard opened this issue Sep 30, 2024 · 3 comments
Open

Feature: Enable URL Key Specification #75

sonatard opened this issue Sep 30, 2024 · 3 comments

Comments

@sonatard
Copy link

We are sending keys like android_url from the server, so we want to make it possible to retrieve them.

val urlData = payloadData.getOrDefault(Notifier.KEY_URL, null)

@mirzemehdi
Copy link
Owner

@sonatard can you please elaborate more what is the issue, couldn't get it?

@sonatard
Copy link
Author

sonatard commented Oct 1, 2024

Our code is as follows. Since the key for retrieving urlData is different, we believe that using KMPNotifier results in the inability to retrieve urlData.

override fun onMessageReceived(remoteMessage: RemoteMessage) {
    val urlData = remoteMessage.data["android_open_url"]

val urlData = payloadData.getOrDefault(Notifier.KEY_URL, null)

@blackwiz4rd
Copy link

So basically the request is to use a custom key for the URL :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants