mixpanel / mixpanel-iphone

Official iOS (Objective-C) Tracking Library for Mixpanel Analytics
http://mixpanel.com
Apache License 2.0
1.05k stars 564 forks source link

[Question][Bug] Why mixpanel doesn't have option to test pushes with sandbox? `"content-available": 1` is not sent within `aps` object #913

Closed lorenc-tomasz closed 3 years ago

lorenc-tomasz commented 4 years ago

Why mixpanel doesn't have option to test pushes with sandbox? It only send pushes on production so it's almost impossible to test and debug push notifications on debug.

lorenc-tomasz commented 4 years ago

Also how to send "content-available": 1 with Mixpanel ?

lorenc-tomasz commented 4 years ago

I have noticed the mixpanel doesn't sent "content-available": 1 within aps object when custom data is added within not silent notifications.

lorenc-tomasz commented 4 years ago

Workaround:

You can send {"aps":{"content-available":1}} as Custom JSON but still it should be added to payload if custom content is available

zihejia commented 3 years ago

hi @lorenc-tomasz , I'm really sorry for the late response. You can use the preview mode to test your pushes. https://help.mixpanel.com/hc/en-us/articles/360001302503-Send-Push-Notifications-from-Mixpanel#:~:text=You%20can%20preview%20a%20push,to%20receive%20the%20test%20notification. If you have more questions, please feel free to reach out to our support to get a timely answer.