DanikKamilov

Results comments of DanikKamilov

Hello. 1) I closed app by home button and throw off it from tasks(from launched apps). So it full closed now. 2) Xiaomi redmi note 4, Blackberry , Sony Experia...

` $path_to_fcm = 'https://fcm.googleapis.com/fcm/send'; $server_key = "ServerKEY"; $headers = array ( 'Authorization:key='.$server_key, 'Content-Type:application/json' ); $data = array( "message" => $message, 'vibrate' => 1, 'sound' => 1, "priority" => "high" );...

` @Override public void onMessageReceived(RemoteMessage remoteMessage) { Map map = remoteMessage.getData(); String message=""; for (Map.Entry entry : map.entrySet()) { message= entry.getValue(); } sendNotification(message); } private void sendNotification(String messageBody) { Intent...

And one more question. I can't subscribe iOS app to topic. Where in code I need to subscribe ? In AppDelegate?

Now (for APP IS CLOSED case) I write Notification text to file and read this text if extras == null and notificationText.txt is exists... its stupid solution but it works....

You should return your message. https://github.com/rubenlagus/TelegramBotsExample you can see examples here. My problem solved. My .pem and .jks files wasn't right.