我需要更新状态更改,例如 android 和 react 本机类之间的事件?
public class MessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
Log.d(TAG, "Push Message Received ");
buildLocalNotification(remoteMessage);
}
public void buildLocalNotification(RemoteMessage message) {
...
FBMessagingHelper notificationHelper = new FBMessagingHelper(this.getApplication());
notificationHelper.showNotification(bundle);
}
}
Run Code Online (Sandbox Code Playgroud)
ReactApplicationContext当类扩展到 FBMessingService 时,如何创建构造函数?
FBMessagingHelper notificationHelper = new FBMessagingHelper(this.getApplication());
// Getting Error as a parameter is not react app context
Run Code Online (Sandbox Code Playgroud)
我需要更新IN_VIDEO_PROGRESS状态
Android视频开始/停止时间React Native。React Native视频开始/停止时间Android。public class FBMessagingHelper extends ReactContextBaseJavaModule {
private …Run Code Online (Sandbox Code Playgroud)