I am trying to send pushnotifications to users. When i try to register it works and i get a succes message. I don't see it coming in my onesignal app. If i try to send a notification i get back the error: "onesignal push notifications unable to find user id". I saw that i need to change the async of the register but when i do that i get this error from the registration: "No devices registered for the provided UserID ". I think it goes wrong at the sending but the fact that i don't see it in my OneSignal account make me doubt it. Does anybody know what i can do?I dropped some pictures of my functions down below
Hi @Dave Nieberg ,
Check the changes I did in your oml.
I created the site properties I told and I put in correct placing in use.
Probably you missed some step.
You need to create these properties:
hmmm it doesn't work for me. I am using the notification for user I think that's the difference. Where do you use the first 3 site properties?
I have both (All and for user). The approach is the same!
Hmm okay, what do you do with enablepushnotifications like where do you use this? Or do i do something wrong in this proces:
i can't directly use site props. Thnx for helping in advance.
You have attached the oml. Enjoy :)
Hey Paulo,
At first i want to say that i am super satisfied with your answer i came a step further. I am doing something wrong but i dont know what. Can you help me? The registration is good and i receive it in onesignal now. When i try to send a message to the users or to all users it doesnt work. It goes through all steps but it doesnt give a succes message. I think it goes wrong here:
the screenname goes to true and then i set the deeplink things. I hardcode the scheme to appid/module/page do i need to change the 2 list appends because they seem strange to me? that is the only thing i am doubting about.
Another thing my app crashes if i accept notifications on my phone. My colleague doesn't have that do you know how that's possible?
Send me your oml
I need to remake it. I will send it tomorrow or thursday. Thnx for the quick reply.
Here you go. Thanks in advance.O i see i forgot to add pushnotificationwrapper. I added it in the real version but forgot it in my oml.
Can you work with this or do i need to deliver something else?