2016-03-16 34 views
0

我正在关注this文档以启用推送Xamarin.Android运行时BB10应用程序。我很困惑,其中&时正好把android.cfg文件。启用推送通知Xamarin.Android运行时BB 10 App

  • 应用 名称创建项目的根APK,加入CFG文件之前(也尝试作为命名android.cfg)。

  • 使用那个apk,我生成了.bar文件,但是在android文件夹下,res 文件夹和apk文件只存在,cfg文件似乎不存在。

  • 然后我试图加入下栏文件CFG文件签名栏文件之前创建的apk但 后,但我开始以下错误:

Error: No manifest. Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.rim.tools.signing.SigningMain.main(SigningMain.java:72) Caused by: java.lang.Exception: java.lang.RuntimeException: No manifest. at net.rim.device.codesigning.barsigner.BarSigner.if(Unknown Source) at net.rim.device.codesigning.barsigner.BarSigner.main(Unknown Source) ... 5 more Caused by: java.lang.RuntimeException: No manifest. at net.rim.device.codesigning.barsigner.BarSigner.try(Unknown Source) ... 7 more

我有ppgurl,APPID这是我从拿到BB。

,这是什么确切的程序?在同一文档以下的事情给出:

The Google Play Services SDK is not supported on BlackBerry 10. If your app includes GCM services, you must set up your Android project to use the stand-alone GCM SDK. Android Studio does not support the use of the stand-alone GCM SDK at this time. For more information see Android Studio Overview.

我使用GCM Client组件,用于推动在Xamarin.Android。什么是doc中独立的GCM SDK?我不知道我使用的是什么样的GCM。

回答

0

我固定上述问题,现在我在我的BlackBerry设备成功接收到推送通知。在不同的地方不同的位置给地方android.cfg文件,但它为我工作的实际位置是:

android.cfg file under assets/blackberry/android.cfg

将这个文件创建APK之前。因为在很多地方,我看把使用zip工具创建APK后这个文件,也可以工作,但如果它不工作尝试此处给出的解决方案:)

我也跟着在下面的文档给出确切的程序。

https://github.com/blackberry/BB10-Android-Runtime-Samples/tree/master/SamplePushClient