react-native-mipush
react-native-mipush copied to clipboard
您好,首先对于您的开源项目真心感谢,但是真心希望,您可以看下问题反馈栏的问题,现在确实真的不能用。 您让npm install react-native-xmpush --save , 但是在引入指令确实import MIPush from 'react-native-mipush' 。 希望您可以看一下,谢谢了
push-notification-ios 已经从 [email protected] 中移动到 @react-native-community/push-notification-ios 中了,所以需要对 `index.js` 作如下修改: ```diff import { NativeModules, Platform, - PushNotificationIOS, NativeEventEmitter, PermissionsAndroid, } from 'react-native'; +import PushNotificationIOS from "@react-native-community/push-notification-ios"; ``` 参考 [Migrating from the core...
added register event type for android
"react-native": "0.61.0", "react-native-xmpush": "^2.0.0"
MIPushModule.java unsetAccount方法,写错了,写成MiPushClient.setAlias
// 应用在前台收到通知 + (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler { NSDictionary * userInfo = notification.request.content.userInfo; if([notification.request.trigger isKindOfClass:[UNPushNotificationTrigger class]]) { [RCTPushNotificationManager didReceiveRemoteNotification:userInfo]; } } 需要加上 `completionHandler(UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound);`
如题,是否能提供getRegId这个方法,来得到唯一标示