使用火力推送通知我發現這個解決方案,我想是不是這是需要通知的ID請你告訴我一些樣本:我怎樣才能獲得設備ID爲android系統中
import android.provider.Settings.Secure;
private String androidIdd = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID);
我想我不需要Android ID。我只想獲取Firebase通知或GCM的設備唯一ID。
在此先感謝。
歡迎StackOverflow的,請閱讀指南[如何提問](https://stackoverflow.com/help/asking)爲了更好地理解你的問題,併爲您提供更好的答案。 –
Thnx指導我保羅卡拉姆 –
從文檔中很清楚。只需按照一步一步的指導,你會很好https://firebase.google.com/docs/cloud-messaging/android/client – Qw4z1