Zionnite
hello Appwriter and Teams, i'm creating Users Target for all my users, i have been able to create email target and sms target, but i would love to target user for push notifications,
here is my code for sms
TypeScript
usersList.$id, // userId
ID.unique(), // targetId
'sms', // providerType
userPhone, // identifier
SMS_PROVIDER_ID, // providerId (optional)
'allUserTargetList' // name (optional)
);```
the code for sms worked perfectly well,
**here is my code for Push**
```const createPushTarget = await users.createTarget(
usersList.$id, // userId
ID.unique(), // targetId
'push', // providerType
'phone', // identifier
PUSH_PROVIDER_ID, // providerId (optional)
'allUserTargetList' // name (optional)
);```
here is my issues, during the time for creating the target for `email` and `sms` i could tell what the `identifier` would be but here in creating the `PUSH` user target, i cant understand the value to pass as an `identifier` for this
please, how do i do this?
TL;DR
Developers are creating user targets for notifications on an app using Appwrite. They need help with identifying what value to pass as an identifier when creating a push target.
Solution: To create a push target, use a valid identifier like a device token or a push notification subscription ID. Recommended threads
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...