Since updating to 2.20.0 yesterday, my blynk.notify has stopped working. iOS v 10.2.1, blynk 0.5.1 in particle IDE. I have 2 different projects running on Particle Electron both using hologram sims. I have not made any changes to my code in quite a while. The only thing that seems to have changed is the update.
Sounds like you have missed some required Port changes perhaps?
I believe even Cloud Server requires it now… but that should be Automatic, so try upgrading the Library to the latest (v0.5.2) and reflashing your devices… v0.5.1 is sooo February '18
As shown in the release updates for v0.5.2…
And even if not Port related, other issues can happen when not keeping current… so remember to keep ALL aspects of Blynk updated: App, Library & Local Server (if used), not just one or two…
Thanks for the reply guys. All good suggestions @Gunner. Unfortunately, 0.5.1 is the newest version available in particle IDE. So, as far as I understand your reply, the app is updated, library is not (nothing newer available) and I am using the cloud.
Possibly obvious question, but have you reflashed your hardware lately with Particle v0.5.1?
Using cloud server the port 80 should be automatic… but perhaps confirm you didn’t manually have something else… not even sure if that would have anything to do with Blynk.notify() anyhow
Another Android trick that might work with iOS is completely remove the App and reinstall… and double check any App permissions.
@Gunner sorry for the late reply. I re-flashed the hardware and confirmed the port setting as you have suggested. I did not remove the app completely but did as @Eugene suggested and removed the widget then re-installed it. Same result, no blynk.notify on the phone.
Strange, I have deleted the entire project from my phone and re-built it with an entirely new auth token-results are the same, blynk debug looks fine, blynk.notify is not working.
So the error is “Notification widget is not initialized” which means either there is no Notifications widget in the project or that your system prohibited push notifications for Blynk.
Sure, I have done all of that prior to posting. I have not made any changes to my phone or firmware other then doing the latest update then it stopped working.
I have the widget in both projects, I have deleted it and added it back, I have completely removed and rebuilt one of the project apps, I have checked and double checked my phone
-allow notifications is ON
-Show in notification center is ON
-Sounds is ON
-Badge App Icon is ON
-Show on Lock Screen is ON
and Alert style ALERTS is selected.
Just reconfirmed those settings in Settings>Notifications>Blynk on my phone