我想在Android应用程序中从gcm迁移到fcm.我是否需要从gcm向Android应用程序的旧用户发送推送通知,或者我可以从服务器通过新的fcm发送它?
FCM运行正常我可以通过fcm在我的设备上接收推送通知,但是我无法从FCM控制台向旧的GCM注册令牌发送推送通知.
下面是我添加到我的清单文件中的代码,用于fcm工作 -
<uses-permission android:name="com.google.android.z.permission.RECEIVE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application>
<service
android:name=".view.activity.MyFcmListenerService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service
android:name=".view.activity.MyInstanceIDListenerService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
</application>
Run Code Online (Sandbox Code Playgroud) android firebase google-cloud-messaging firebase-cloud-messaging
在realm-swift中添加新对象时是否需要迁移realm ?
我在 Realm 中已经有一个对象。现在,我想添加到新的 Realm 对象。
我需要为此添加迁移吗?