i want to use Notifications function,it seems easy,but i still not make it worked yet.
when i add Push Notifications,the app told me , need google play service,so i install google play(it’s so hard to install google play in China).after i installed, there is no warning any more ,but the notify is still cant work.
need help!!
• Hardware:Wemos D1
• Smartphone OS (Android 8.0)
• Blynk server
• Blynk Library version :0.5.2
•App version:2.20.3
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "c35086b1bbb14ab6xxxxxa38d21d6001";
char ssid[] = "Xiaomi_0432";
char pass[] = "xxxx";
BlynkTimer timer;
void notifyUptime()
{
long uptime = millis() / 60000L;
Blynk.notify(String("Running for ") + uptime + " minutes.");
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
Blynk.notify("Device started");
timer.setInterval(60000L, notifyUptime);
}
void loop()
{
Blynk.run();
timer.run();
}