Just setup the notification component and I am not having immediate success - I have a couple of questions.
notify:
- name: iOSApp
platform: ios
target: '<TOKEN FROM SETTINGS>'
What should the token be here? I don’t see anything called token in the App itself as I expected?
Also, for now I am not defining any Push Categories - will basic notification still work? I am currently testing with the dev tools like this:
The logs show the call going through with no errors, but I get nothing from the App on the phone - I guess because the token is incorrect(I just put in the device name).
I had this same problem… the token is in the app settings by the push section… it is a really long code.
As for Push Categories, they are currently necessary even if you are not using actionable messages, but I was told a change was coming that would only require that for actionable messages. The bare minimum for me is the following to get the messages working:
When I was talking to @robbiet480 about whether or not the Push Categories were necessary for sending regular messages, and he asked me if I was on iOS 9 or iOS 10, but since I have not yet upgraded to iOS 10, I told him I was still on iOS 9, so he said, “yeah, you will still need it”, so I am not sure if that means that if you are on iOS 10 it may go through with just {“message”:“Hello”} once you have the token in the configuration.yaml without needing to add any categories to the configuration, but I can not say for sure, but if I remember correctly, you mentioned in another post that you were on iOS 10 now? If so, you should give it a try with just the message and see what happens.
There’s a bug in the iOS 10 code for registering the push categories. If you use the default configuration that I put in the Gist it will crash your app every time you launch the app. It will be fixed soon.
Ahh, so I assume the Push Categories will be required no matter what, on regular messages and actionable messages. Thats fine for me, I just have the GENERIC category for non-actionable messages.
But for now, is it correct that iOS 10 users can not use any push notifications until the next app update? If so, I’ll hold off on upgrading my devices to iOS 10
hmm, that is strange… @robbiet480, when I told you I was not wanting to use actionable messages but just plain messages without buttons and whether or not I needed to have the Push Categories anyway, I thought you told me that I still needed Push Categories. Did I misunderstand? I’ll have to test in the developer tools.
I am opening the App on IOS, clicking on the bottom right menu for “more” then selecting settings on the bottom. Under that screen I see setup info such as the URL and password, my Device ID and all of the zones I have created in HA. I do not see a “push” section, or anything marked as a token …