我想在FCM的应用程序中实现推送通知.该应用程序成功获得FCM推送,但当我想从Quickblox管理pannel发送,然后给我错误像
error_description":"无法发送通知20860148,收到错误401(未经授权,请检查您的应用程序auth_key.)
这是log.json文件: -
{"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},"
Run Code Online (Sandbox Code Playgroud)
日志 ":[{" 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":"无法发送通知20860148,收到错误401(未经授权,请检查您的应用程序auth_key.)"}]}
android http-status-code-401 google-cloud-messaging quickblox firebase-cloud-messaging
APPSYNC_ERROR: Attempt to invoke virtual method
Run Code Online (Sandbox Code Playgroud)
java.util.Map com.amazonaws.mobile.client.AWSMobileClientStore.get(java.lang.String[]) on a null object reference
I am trying to inserting data in AWS table, But i got this error. Can you help me to resolve this issue?
AWSAppSyncClient client = AWSAppSyncClient.builder()
.context(context)
.region(AppHelper.cognitoRegion)
.serverUrl(AppHelper.SERVER_URL)
.cognitoUserPoolsAuthProvider(new CognitoUserPoolsAuthProvider() {
@Override
public String getLatestAuthToken() {
try {
return AWSMobileClient.getInstance().getTokens().getIdToken().getTokenString();
} catch (Exception e){
Log.e("APPSYNC_ERROR", e.getLocalizedMessage());
return e.getLocalizedMessage();
}
}
}).persistentMutationsCallback(new PersistentMutationsCallback() {
@Override
public void onResponse(PersistentMutationsResponse response) {
Log.d("NOTERROR", response.getMutationClassName());
}
@Override
public void onFailure(PersistentMutationsError …Run Code Online (Sandbox Code Playgroud) android amazon-web-services aws-sdk aws-appsync appsync-apollo-client
当 RecyclerView 从列表到网格时如何切换布局,反之亦然。
android listview gridview android-layout android-recyclerview