0
我正在使用Phonegap構建應用程序,並且我正在爲iOS和Android使用Urban Airship。如何在Phonegap項目中爲Android安裝新的Urban Airship推送庫
對於Android,我將它與AirMail一起使用,但現在他們正在計劃棄用AirMail併發布了一個新庫(http://urbanairship.com/docs/android-client-overview.html)。
我試圖讓它工作,但我不能初始化:
public class MainApp extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
UAirship.takeOff(this);
}
}
的UAirship.takeOff()方法是假設採取「應用程序」的說法,但由於PhoneGap的應用擴展DroidGap而不是應用程序它不起作用。
我對Android開發幾乎一無所知,所以我不知道如何去解決這個問題。
有沒有人成功地在phonegap項目上安裝了新的UAirship庫?