onesignal

Certificate being rejected by Apple

最后都变了- 提交于 2019-12-03 07:42:23
问题 While configuring certificate for Push Notification on my ios build of cordova project using OneSignal, the certificate is getting rejected every time I'm trying to configure it. I've followed steps mentioned in https://documentation.onesignal.com/docs/generate-an-ios-push-certificate I've tried using OneSignal Provisionator Tool, and generated certificate using KeyChain access as well without any result. 回答1: You can test APNS connection with this script: https://gist.github.com/greencoder

OneSignal subscribe user through web page using web-push-sdk

夙愿已清 提交于 2019-12-03 05:21:45
问题 Is there a way in one signal web-push-sdk to add user manually and unsubscribe? I tried this in my subscribeOneSignal() function but nothing happening. OneSignal.push(function() { OneSignal.registerForPushNotifications(); }); I have simple html page where I have two buttons one "Subscribe" and other is "Unsubscribe", now when user click on Subscribe button he should add at one signal and when he clicked on "Unsubscribe" button he shouldn't receive the notifications. <!DOCTYPE html> <html>

How to get One Signal unique user id in Mobile?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 02:22:27
I am developing a restaurant app. I am using One Signal in my app to send notifications. Here while I place the order I need to send the unique Id of the one signal for a specific user for getting notification of "Your Order is placed successfully... It is in Progress.Please wait". For that I need the user's One Signal user id. How can I get it? I am newbie to One Signal. Please help me. Got the unique Id of OneSignal by using the following code which is in official site of OneSignal. OneSignal.idsAvailable(new OneSignal.IdsAvailableHandler() { @Override public void idsAvailable(String userId,

Certificate being rejected by Apple

喜你入骨 提交于 2019-12-02 21:07:48
While configuring certificate for Push Notification on my ios build of cordova project using OneSignal, the certificate is getting rejected every time I'm trying to configure it. I've followed steps mentioned in https://documentation.onesignal.com/docs/generate-an-ios-push-certificate I've tried using OneSignal Provisionator Tool, and generated certificate using KeyChain access as well without any result. You can test APNS connection with this script: https://gist.github.com/greencoder/16d1f8d7b0fed5b49cf64312ce2b72cc This script requires your key and certificate in pem format. To convert from

Failed resolving dependencies due to OneSignal

a 夏天 提交于 2019-12-02 12:45:35
I found the following question: Failed to resolve: com.android.support:customtabs:[26.0.0,26.1.0] People marked it as duplicate (which is wrong ! see next sentence) or wrote something about Maven or cleaning project etc. I have exactly the same problem for two days (failed to resolve customtabs and support-v4) and I did not change anything in my project which has been previously working. So I started looking for possible solutions and I found the problem - it is the OneSignal dependency - when I remove it, everything works fine. But I have already implemented notifications in my app - and don

Build Signed APK failed - Can't find common super class of [android/content/Context]

◇◆丶佛笑我妖孽 提交于 2019-12-02 02:17:00
This is Android Project. Using Normal Build was successfull, but using signed Key i got this error : Execution failed for task ':transformClassesAndResourcesWithProguardForFlavorRelease'. > java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [android/content/Context] (with 2 known super classes) and [com/onesignal/ADMMessageHandler] (with 1 known super classes) Any Idea ? Thanks in advance... I think Proguard causes this problem. Add this line to your Proguard file. -keep class com.onesignal.** { *; } And you should read this issue. It may help you. https:

Integrating OneSignal with Angular

对着背影说爱祢 提交于 2019-12-01 17:55:31
I'm trying to integrate OneSignal into my Angular 2 app to receive push notifications. First I did a HelloWorld app using plain old HTML and it works beautifully. So I tried to include it into my Angular app, but users are not getting created/registered, and hence are not subscribed to receive any notifications. Code excerpts: index.html <html> <head> <meta charset="utf-8"> <title>My Angular App</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <head> <link rel="manifest" href="/manifest.json">

Integrating OneSignal with Angular

不想你离开。 提交于 2019-12-01 15:28:20
问题 I'm trying to integrate OneSignal into my Angular 2 app to receive push notifications. First I did a HelloWorld app using plain old HTML and it works beautifully. So I tried to include it into my Angular app, but users are not getting created/registered, and hence are not subscribed to receive any notifications. Code excerpts: index.html <html> <head> <meta charset="utf-8"> <title>My Angular App</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link

How do I prevent Alert when App is on Foreground with Incoming OneSignal Push Notification?

对着背影说爱祢 提交于 2019-12-01 04:41:36
When my app is in the foreground, there is a alert that appears. How do I prevent this from appearing when receiving push notifications? In your didFinishLaunchingWithOptions method of AppDelegate you have to add kOSSettingsKeyInAppAlerts = NO [OneSignal initWithLaunchOptions:launchOptions appId:ONESIGNAL_APPID handleNotificationReceived:nil handleNotificationAction:nil settings:@{kOSSettingsKeyInAppAlerts:@NO}]; For Swift 3.0 // Initialize OngeSignal with Settings for Push Notifications OneSignal.initWithLaunchOptions(launchOptions, appId: Constants.OneSignalAppID, handleNotificationReceived:

How do I prevent Alert when App is on Foreground with Incoming OneSignal Push Notification?

风流意气都作罢 提交于 2019-12-01 02:17:50
问题 When my app is in the foreground, there is a alert that appears. How do I prevent this from appearing when receiving push notifications? 回答1: In your didFinishLaunchingWithOptions method of AppDelegate you have to add kOSSettingsKeyInAppAlerts = NO [OneSignal initWithLaunchOptions:launchOptions appId:ONESIGNAL_APPID handleNotificationReceived:nil handleNotificationAction:nil settings:@{kOSSettingsKeyInAppAlerts:@NO}]; 回答2: For Swift 3.0 // Initialize OngeSignal with Settings for Push