Appilix assigns a unique device ID to each device that installs and opens your app. However, Appilix doesn't automatically know the user of the website associated with that device (e.g., email address of the user). This is why "Unknown User" appears alongside the device ID when targeting specific users for push notifications.
To know who the user is, you need to pass user identity from your website. This allows Appilix to identify user and display the identify while sending push notification to specific user.
Here are three ways to pass user identity information from your website to your app:
1. Using URL Parameters:
Once a user logs in to your website, the page after login (or any desired page) can include a URL parameter like this:
- https://yourwebsite.com/dashboard?appilix_push_notification_user_identity=email@example.com
Replace email@example.com with the user information you want to see (e.g., email address, user ID) in the place of "Unknown User".
2. Using Script:
Add a script to the page after login (or any desired page) to pass user information:
<script>
var appilix_push_notification_user_identity = "email@example.com";
</script>
Replace email@example.com with the user information you want to see (e.g., email address, user ID) in the place of "Unknown User".
3. Using Cookies:
Set a cookie on the user's browser named appilix_push_notification_user_identity with the desired user information as its value (e.g., email address, user ID) once they log in to your website.