'Push notification pending intent extras are null when app is not launched
I'm using the FCMMessagingService class, and in on message received method, I'm creating a pending intent for Activity4.class and passing the extra value as below.
val openIntent = Intent(this, Activity4::class.java)
openIntent.putExtra("isPush", true)
When a push notification is tapped on, can I get the extra data when the app is in the foreground and background with the logged-in case?
But I'm not receiving this extra data when the app is not launched, or the app is killed and relaunched.
In the manifest, the launcher activity is LaunchActivity.class. Here, I can see that pendingIntent and launcher activity are different. How can I get the data in this scenario?
Solution 1:[1]
No, it is not possible to add two user pools. Instead, you can use single user pool and create different groups for different user types inside that user pool.
Could you elaborate more on your user case? If you really need two user pools, there might be also advanced ways to solve your case. For example, using Cognito Federated Identities (identity pools) and adding two user pools as authentication providers.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
