- Más nuevo
- Más votos
- Más comentarios
In your case, since your app is completely anonymous and does not have user accounts, you still need to call **Amplify.Notifications.Push.identifyUser() **function but you can pass a unique identifier for each device instead of a user ID.
You can generate a unique ID when the app is first launched and store it in the device's local storage. This ID will then be used as the user ID for that particular device. Android provides a few different IDs that are unique to each device, such as the Android ID. You can use one of these IDs as the user ID. Note that you should be aware of the privacy implications and adhere to Google's guidelines when using device identifiers. You should not use a constant value for all devices, as this would prevent you from being able to send notifications to individual devices. The ID you pass to the identifyUser function should be unique for each device.
Contenido relevante
- OFICIAL DE AWSActualizada hace 4 meses
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 8 meses