我正在使用someignal-react-native为我的本机应用程序。但是,我在ios应用程序上遇到警报问题。我不知道如何关闭警报,以便在应用程序中的用户时不显示警报。我怎么能把它关掉?
答案 0 :(得分:1)
对于将来对此进行调查的任何人,您需要将其添加到AppDelegate.m
gem install puma -v '3.6.0' -- --with-opt-dir=/usr/local/opt/openssl
对于Android只需添加
self.oneSignal = [[RCTOneSignal alloc] initWithLaunchOptions:launchOptions
appId:@"app-id"
settings:@{kOSSettingsKeyInFocusDisplayOption : @(OSNotificationDisplayTypeNotification),kOSSettingsKeyAutoPrompt : @YES}];
希望它有所帮助。