Android应用程序:成功发送AP prequests后,朋友们并没有得到通知并没有、朋友们、应用程序、通知

由网友(旧梦颜*)分享简介:我通过我的测试Android应用程序并在的onComplete()发了 AP prequests 方式我得到了这样的消息。捆绑[{[0] = 1460762087,请求= 425924150781914}] 但在朋友身边,他们没有得到任何通知。只有在左边,我可以看到一个1旁边的应用程序和游戏,但点击后,我没有看到任何应...

我通过我的测试Android应用程序并在的onComplete()发了 AP prequests 方式我得到了这样的消息。

  

捆绑[{[0] = 1460762087,请求= 425924150781914}]

但在朋友身边,他们没有得到任何通知。只有在左边,我可以看到一个1旁边的应用程序和游戏,但点击后,我没有看到任何应用程序的请求。

这是我的code

 捆绑PARAMS =新包();
        params.putString(信息,加入我们!);

        context.facebook.dialog(背景下,接入点prequests,PARAMS,新DialogListener(){
            @覆盖
            公共无效的onComplete(束值){
                Log.d(发送请求响应,values​​.toString());
            }

            @覆盖
            公共无效onFacebookError(FacebookError E){
                Log.d(脸谱错误,e.toString());
            }

            @覆盖
            公共无效onerror的(DialogError E){
                Log.d(对话错误,e.toString());
            }

            @覆盖
            公共无效OnCancel的(){}
        });
 

解决方案

我有同样的问题,解决了昨天:

登录到Facebook上的应用程序的编辑页面 - https://developers.facebook.com/apps

填充的领域 帆布网址安全帆布网址,即使添加假网址的 通知应该开始出现正常(只要网址 以'/'结尾)

现在你会发现,如果你点击这些通知在移动 设备你要么,如果已经安装让您的应用程序打开 或让你的应用程序的谷歌播放页面。

Appium python Android

如果你点击桌面浏览器的通知,你会得到     一个Facebook网页,其中除了一个头球顶空,你可以填补     与安全帆布网址,你需要一个网站支持页面     HTTPS进行的。

I sent an apprequests through my test Android app and in onComplete() method I got message like this

Bundle[{to[0]=1460762087, request=425924150781914}]

But at friends side, they did not get any notifications. Only at left side, i can see a "1" next to "Apps and Games", but after click, I did not see any app request.

here is my code

Bundle params = new Bundle();
        params.putString("message", "Join us!");

        context.facebook.dialog(context, "apprequests", params, new DialogListener(){
            @Override
            public void onComplete(Bundle values){
                Log.d("send request response", values.toString());
            }

            @Override
            public void onFacebookError(FacebookError e){
                Log.d("facebook error", e.toString());
            }

            @Override
            public void onError(DialogError e){
                Log.d("dialog error", e.toString());
            }

            @Override
            public void onCancel(){}
        });

解决方案

I had the same issue, solved it yesterday:

Log in to your edit app page on Facebook - https://developers.facebook.com/apps

Fill the fields for Canvas URL and Secure Canvas URL, even if you add bogus URLs the notifications should start appearing properly (as long as the URLs end with a '/')

Now you'll see that if you click on those notifications on a mobile device you'll either get your app opened if it's already installed or get to the google play page of your app.

If you click on the notification on a desktop browser, you'll get to a facebook page which except for a top header is empty, you can fill that page with the Secure Canvas URL, you'll need a site that supports https for that.

阅读全文

相关推荐

最新文章