I want to implement push notification in app by FCM. The app is successfully getting FCM pushnotification but when i want to send from Quickblox admin pannel then that give me error like
error_description":"Unable to deliver notification 20860148, received error 401 (Unauthorized, check your App auth_key.)
This is log.json file :-
{"notification":{"registration_ids":["dA_lOjHQU2M:APA91bHB0zGuoalZoxtdcstBQ0dL0pPJA5HyUaoPVibD2iqnrUA51NLqrrmY5zrTZV7OaP55nUEber9NLkPs_ENkVtHLvbEAcHTrgh8wl_YoNhRsUNdyeIWt0mPDKk0tCDyLssXRuFu8"],"delay_while_idle":false,"data":{"message":"hii tesas","collapse_key":"event12616627"},"priority":"high","time_to_live":86400},"
log":[{"device_token":null,"created_at":"2016-12-14T09:56:50Z","delivered_at":null,"failed_at":"2016-12-14T09:56:51Z","error_code":401,"error_description":"Unable to deliver notification 20860148, received error 401 (Unauthorized, check your App auth_key.)"}]}
You are required to put Google Cloud Messaging (GCM) API key in your Quickblox Admin panel. Make sure you put Google Server Key there.
Follow these steps to get the server key:
Hope this helps!