2016-03-16 92 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