unity3d的IOS包为什么收不到推送

832069d3cb683d274815
2018-12-06 10:39 1.2k 0

我按着https://github.com/jpush/jpush-unity3d-plugin这个页面的方法一步一步的搞完了,反复检查了几次。但是收不到任何推送消息,我的是IOS9.3的平板和一个IOS12的手机。

我在unity里面输出日志,发现极光初始化已经执行了的,并且我故意调用了 函数JPush.JPushBinding.GetRegistrationId()能获得注册号。代码如下所示(其实就只有这些代码,没有其他地方又相关代码了):

#if  !UNITY_EDITOR &&UNITY_IOS
            Common.CmnSystem.Log("JPush.JPushBinding.Init...IOS....start");
            JPush.JPushBinding.Init("suarez");
        JPush.JPushBinding.SetDebug(true);
            Common.CmnSystem.Log("JPush.JPushBinding.Init...IOS....end");

        string jpushID= JPush.JPushBinding.GetRegistrationId();
        Common.CmnSystem.Log(string.Format("JPush.JPushBinding...RegistrationId...:{0} ", jpushID));

#elif  !UNITY_EDITOR &&UNITY_ANDROID
......
#endif

我的消息号:54043198281323669
发送编号:1544087965
JPush.JPushBinding.GetRegistrationId()返回的应该是注册号吧,如下:
101d8559091eef282d6

麻烦指点下,不胜感激!

1个回答

热门排序