可以通过接收广播的方式获取:
public class MyReceiver extends BroadcastReceiver {
private static final String TAG = "JPush";
@Override
public void onReceive(Context context, Intent intent) {
String regId = JPushInterface.getRegistrationID(context);
}
可以通过接收广播的方式获取:
public class MyReceiver extends BroadcastReceiver {
private static final String TAG = "JPush";
@Override
public void onReceive(Context context, Intent intent) {
String regId = JPushInterface.getRegistrationID(context);
}