Giter VIP home page Giter VIP logo

pushwoosh-phonegap-plugin's People

Contributors

aaevstefeev avatar akidisdev avatar akidison avatar d-tikhonov avatar davidmiani avatar dimanam avatar eddyverbruggen avatar fectum89 avatar fgilio avatar fleurdeviande avatar jqrgen avatar kaizerzer avatar mobius3 avatar nikolleto avatar savinmike avatar shaders avatar tylrw avatar vveysner avatar wfhm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pushwoosh-phonegap-plugin's Issues

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.

2014-09-21 16:00:00.198 OASYS[952:271480] Initializing application: (null) (null)
2014-09-21 16:00:00.254 OASYS[952:271480] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/097B499C-085C-4014-8D94-68BF/Library/Cookies/Cookies.binarycookies
2014-09-21 16:00:01.028 OASYS[952:271480] Apache Cordova native platform version 3.6.0 is starting.
2014-09-21 16:00:01.029 OASYS[952:271480] Multi-tasking -> Device: YES, App: YES
2014-09-21 16:00:01.069 OASYS[952:271480] Unlimited access to network resources
2014-09-21 16:00:01.081 OASYS[952:271480]

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/

2014-09-21 16:00:01.596 OASYS[952:271480] [CDVTimer][splashscreen] 328.299999ms
2014-09-21 16:00:01.612 OASYS[952:271480] [CDVTimer][statusbar] 15.071988ms
2014-09-21 16:00:01.613 OASYS[952:271480] [CDVTimer][TotalPluginStartup] 345.326006ms
2014-09-21 16:00:01.642 OASYS[952:271480] Will show push notifications alert
2014-09-21 16:00:02.009 OASYS[952:271570] Sending request: {"request":{"hwid":"F0xxxE3C-28EB-44A1-B46F-8F3xxxxx7DE","application":"Fxxxxx-16280","v":"2.3"}}
2014-09-21 16:00:02.014 OASYS[952:271570] To urL https://cp.pushwoosh.com/json/1.3/applicationOpen
2014-09-21 16:00:02.641 OASYS[952:271480] Resetting plugins due to page load.
2014-09-21 16:00:03.744 OASYS[952:271480] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/2xxxxxE9-EFC6-4883-87FE-D9720Dxxxx96/OASYS.app/www/index.html
2014-09-21 16:00:04.000 OASYS[952:271480] THREAD WARNING: ['NetworkStatus'] took '56.248047' ms. Plugin should use a background thread.
2014-09-21 16:00:04.192 OASYS[952:271480] registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.
2014-09-21 16:00:04.212 OASYS[952:271480] THREAD WARNING: ['Geolocation'] took '15.568115' ms. Plugin should use a background thread.
2014-09-21 16:00:05.923 OASYS[952:271570] Response "200 no error": string: {"status_code":200,"status_message":"OK","response":null}
2014-09-21 16:00:05.926 OASYS[952:271570] sending appOpen completed

"cannot find symbol" messages during app build process

These are the log outputs:

C:\path-to-project\ src\com\arellomobile\android\push\utils\executor\V11ExecutorHelper.java
Error:Error:line (21)java: cannot find symbol
symbol: variable THREAD_POOL_EXECUTOR
location: class android.os.AsyncTask

and

C:\path-to-project\ src\com\arellomobile\android\push\utils\notification\BannerNotificationFactory.java
Error:Error:line (59)java: cannot find symbol
symbol: variable JELLY_BEAN
location: class android.os.Build.VERSION_CODES
Error:Error:line (61)java: cannot find symbol
symbol: variable bigContentView
location: variable notification of type android.app.Notification
Error:Error:line (64)java: cannot find symbol
symbol: variable HONEYCOMB
location: class android.os.Build.VERSION_CODES
Error:Error:line (66)java: cannot find symbol
symbol: variable tickerView
location: variable notification of type android.app.Notification

android: small banner view show only header

there are two states for push, the extended and the small(when there is multipile notifications in the bar).
right now when you send push with banner, when the push is in his small view, there is only the header.
I think it also should include the small texts

cordova build failed: Undefined symbols for architecture i386

Here are the Cordova commands I ran. I started with nothing and did not modify anything in the process. I just ran these commands in this order and got the “BUILD FAILED” message. It looks like the PushWoosh plugin is having problems with something on my machine. I also changed versions of Cordova to 3.5 and 3.4 and got the same build error.

Cordova Commands I ran:

cordova create hello com.example.hello HelloWorld
cordova platform add ios
cordova build
cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git
cordova build (BUILD FAILED happens here)

Here are versions I am using:

Cordova v 3.6.3-0.2.13 / xCode v 5.1.1 / PushWoosh Cordova Plugin v
3.0

Here are the 4 errors from the build output:

Undefined symbols for architecture i386:
"OBJC_CLASS$_UIMutableUserNotificationAction", referenced from:
objc-class-ref in Pushwoosh(PWRegisterDeviceRequest.o)
"OBJC_CLASS$_UIMutableUserNotificationCategory", referenced from:
objc-class-ref in Pushwoosh(PWRegisterDeviceRequest.o)
"OBJC_CLASS$_UIUserNotificationSettings", referenced from:
objc-class-ref in Pushwoosh(PushNotificationManager.o)
objc-class-ref in Pushwoosh(PWRegisterDeviceRequest.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am not the only one with this problem, and it looks like they are using the same version of xCode that I am using:

https://community.pushwoosh.com/questions/234/not-found-for-architecture-i386

Any help will be appreciated.

Thanks,

Warren Bell

NullPointerException on receiving message

The following NullPointerException is thrown when sending a pushmessage to an Android device:

E/AndroidRuntime(32369): FATAL EXCEPTION: IntentService[GCMIntentService--1]
E/AndroidRuntime(32369): java.lang.NullPointerException
E/AndroidRuntime(32369): at java.io.StringReader.(StringReader.java:47)
E/AndroidRuntime(32369): at android.text.HtmlToSpannedConverter.convert(Html.java:435)
E/AndroidRuntime(32369): at android.text.Html.fromHtml(Html.java:138)
E/AndroidRuntime(32369): at android.text.Html.fromHtml(Html.java:101)
E/AndroidRuntime(32369): at com.arellomobile.android.push.utils.notification.SimpleNotificationFactory.generateNotificationInner(SimpleNotificationFactory.java:42)
E/AndroidRuntime(32369): at com.arellomobile.android.push.utils.notification.BaseNotificationFactory.generateNotification(BaseNotificationFactory.java:51)
E/AndroidRuntime(32369): at com.arellomobile.android.push.PushGCMIntentService.generateNotification(PushGCMIntentService.java:155)
E/AndroidRuntime(32369): at com.arellomobile.android.push.PushGCMIntentService.onMessage(PushGCMIntentService.java:66)
E/AndroidRuntime(32369): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:190)
E/AndroidRuntime(32369): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
E/AndroidRuntime(32369): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(32369): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(32369): at android.os.HandlerThread.run(HandlerThread.java:60)

iOS sound, badge, alert not working

I'm using Phonegap-Build with Phonegap version 3.4 and Pushwoosh 3.0.2.

I'm receiving pushes via web interface, but the badges do not show up neither a sound is played or any other notification on the phone.

Should this work out of the box?

I registered like this:
pushNotification.registerDevice({alert:"true", badge: "true", sound: "true", pw_appid:"....", appname:"..."}, ...

Any ideas?

EXC_BAD_ACCESS on iOS when calling onDeviceReady

When I call

window.plugins.pushNotification.onDeviceReady({pw_appid:"ASDFG-ASDFG"});

An exception gets raised:

I've added the phonegap plugin via:

phonegap plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git

And I've added the access origin to my config.xml:

<access origin="*.pushwoosh.com" />

What could be the cause? I'm using phonegap 3.3 and building locally.

Android crash when application is resumed from notification

We recently applied the "singleTask" launch mode to our application. Now, when the user clicks on a push notification, the app attempts to resume, but crashes. We get the following in logcat:

I/System.out(12492): Tried to get instance of PushManager with no Pushwoosh AppID or Project Id set
D/AndroidRuntime(12492): Shutting down VM
W/dalvikvm(12492): threadid=1: thread exiting with uncaught exception (group=0x4163cba8)
V/PanelView(  861): animationTick called with dtms=0; nothing to do (h=1776.0 v=-6000.0)
E/AndroidRuntime(12492): FATAL EXCEPTION: main
E/AndroidRuntime(12492): Process: com.us.app, PID: 12492
E/AndroidRuntime(12492): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.us.app/com.arellomobile.android.push.PushHandlerActivity}: java.lang.NullPointerException
E/AndroidRuntime(12492):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
E/AndroidRuntime(12492):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime(12492):        at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime(12492):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime(12492):        at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(12492):        at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(12492):        at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime(12492):        at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime(12492):        at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(12492):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime(12492):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime(12492):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(12492): Caused by: java.lang.NullPointerException
E/AndroidRuntime(12492):        at com.arellomobile.android.push.PushHandlerActivity.handlePush(Unknown Source)
E/AndroidRuntime(12492):        at com.arellomobile.android.push.PushHandlerActivity.onCreate(Unknown Source)
E/AndroidRuntime(12492):        at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime(12492):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime(12492):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
E/AndroidRuntime(12492):        ... 11 more
W/ActivityManager(  766):   Force finishing activity com.us.app/com.arellomobile.android.push.PushHandlerActivity
W/ActivityManager(  766): Activity pause timeout for ActivityRecord{42e2cf90 u0com.us.app/com.arellomobile.android.push.PushHandlerActivity t353 f}
E/qcom_sensors_hal(  766): hal_process_report_ind: Bad item quality: 11

We are calling onDeviceReady with the proper AppId and ProjectId when the application starts. No error is thrown if the App is not running when they click on the notification. Is it a misconfiguration on our part? Do we always need to call onDeviceReady when the 'resume' event is fired?

android push only works from pushwoosh.com

Hello, i have a issue where my push notifications from PHP script wont receive on my android, but they do on iOS... However, if I send from pushwoosh.com the messages arrives OK!

Warning on app start

I get the following warning when my application starts

THREAD WARNING: exec() call to PushNotification.registerDevice blocked the main thread for 36ms. Plugin should use CordovaInterface.getThreadPool().

Is there a fix for that?
Thanks.

Cordova-Android: setTags function returns status; "Invalid action".

Whenever i try to set a tag for the device, it returns a status of "Invalid action". I tried to check if the function worked and notice it did. It was setting the tags but returning a failed status instead of success.

How can i solve this problem.

_Code_

 $ionicPlatform.ready(function() {    
    // Notifications
    if(!$rootScope.pushdata){
        $rootScope.pushdata = [];
    }
    console.log($rootScope.pushdata);
    $rootScope.pushcount = $rootScope.pushdata.length;

    var pushNotification = window.plugins.pushNotification;

    //set push notifications handler
    document.addEventListener('push-notification', function(event) {
        //Save notifications here
        $rootScope.pushdata.push(event.notification);
        $rootScope.pushcount = $rootScope.pushdata.length;
        navigator.notification.vibrate(1000);
        console.log($rootScope.pushcount);
        console.log($rootScope.pushdata);
        pushNotification.stopGeoPushes();        
    });


        //initialize Pushwoosh with projectid: "GOOGLE_PROJECT_ID", appid : "PUSHWOOSH_APP_ID". This will trigger all pending push notifications on start.
        pushNotification.onDeviceReady({ projectid: "XXXXXXXXXXX", appid : "XXXXX-XXXX" });       

        $rootScope.$on("$firebaseSimpleLogin:login", function(evt, user) {
            //register for pushes
            pushNotification.registerDevice(
                function(status) {
                    var pushToken = status;         
                    console.warn('push token: ' + pushToken);
                    //settings tags
                       pushNotification.setTags({Clientid:"hello", City: "Lagos"},
                                    function(status) {
                                        console.warn('setTags success '+status);
                                    },
                                    function(status) {
                                        console.warn('setTags failed '+status);
                                    });

                                    function geolocationSuccess(position) {
                                    pushNotification.sendLocation({lat:position.coords.latitude, lon:position.coords.longitude},
                                                             function(status) {
                                                                  console.warn('sendLocation success');
                                                             },
                                                             function(status) {
                                                                  console.warn('sendLocation failed');
                                                             });
                                };

                                // onError Callback receives a PositionError object
                                //
                                function geolocationError(error) {
                                    alert('code: '    + error.code    + '\n' +
                                          'message: ' + error.message + '\n');
                                }

                                function getCurrentPosition() {
                                    navigator.geolocation.getCurrentPosition(geolocationSuccess, geolocationError);
                                }

                                //Pushwoosh Android specific method that cares for the battery
                                pushNotification.startGeoPushes();


                                pushNotification.setMultiNotificationMode();

                                            },
                                            function(status) {
                                                //console.warn(JSON.stringify(['failed to register ', status]));
                                            }
                                        );

           });



  });

after upgrade from 3.0.2

For using cordova 3.5.0, and upgrade the plugin from 3.0.2. It does not work, sometimes cannot subscribe it. Even the subscription succeeded, it pushed without response in Android 4.4.2 and iOS7.

Documentation Inconsistency with registerDevice Success Callback

In the README, the sample code for registering the device shows the status argument in the success callback as being the same for both Android and iOS:

function(status) {
  var pushToken = status;

But in the sample app (https://github.com/shaders/phonegap-3-sample-app/blob/master/www/js/index.js) the status argument is handled differently. In iOS:

function(status) {
  var deviceToken = status['deviceToken'];

And in Android:

function(token) {
 alert(token);

I'm specifically referring to the PhoneGap Build Plugin. Which is correct?

In-app notification on iOS when application is active

Per everything that I have read, we should not be receiving an in-app pop up when a push message is received and the app is open. However, we are. The message pops up, which has a native look/feel, and has OK/Cancel buttons.
We do not have anything in the JavaScript code to alert when a push is received.

how to make multiple pushes in status bar?

right now if i send 2 pushes the first disappear and the user only see the last push
is there any option to support multiple messages in the statusbar?
checked on android 4.4.4 and 4.0.3

Virgin cordova build breaks

Hi,

First, thanks for the plugin!

If I just add this to cordova via

cordova plugin add https://github.com/shaders/pushwoosh-phonegap-3.0-plugin.git

When I then build via

cordova build ios

I get the error:

Compiling app on platform "ios" via command    
"/Users/ff/dev/snapshot/LivingPic/platforms/ios/cordova/build" 

/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
                throw e;
                      ^
Error: An error occurred while building the ios project.2014-01-06 11:45:43.609    xcodebuild[22301:4107]  DeveloperPortal: Using pre-existing current store at URL (file:///Users/ff/Library/Developer/Xcode/DeveloperPortal%205.0.2.db).

which seems to be caused by the linker not finding the AdSupport library. I think this is addressed by adding something like

    <framework src="AdSupport.framework" weak="true" />

to ios build spec in plugin.xml

Build error when using the plugin

I'v tried to build a native app for Android using the pushwoosh plugin and got following error:
I'v just tried to add the Pushwoosh plugin to my app and got the following error:

Error - Plugin error (you probably need to remove plugin files from your app: Error: grafting xml at selector "/cordova/plugins" from "/tmp/gimlet/a5861902-1de9-11e2-aa7b-1231392cd79b/www_android/project/res/xml/config.xml" during config install went bad :( at /home/ec2-user/nvm/v0.10.10/lib/node_modules/plugman/src/util/config-changes.js:277:47 at Array.forEach (native) at /home/ec2-user/nvm/v0.10.10/lib/node_modules/plugman/src/util/config-changes.js:256:63 at Array.forEach (native) at /home/ec2-user/nvm/v0.10.10/lib/node_modules/plugman/src/util/config-changes.js:235:45 at Array.forEach (native) at Object.module.exports.add_plugin_changes (/home/ec2-user/nvm/v0.10.10/lib/node_modules/plugman/src/util/config-changes.js:231:35) at /home/ec2-user/nvm/v0.10.10/lib/node_modules/plugman/src/util/config-changes.js:322:28 at Array.forEach (native) at Object.module.exports.process (/home/ec2-user/nvm/v0.10.10/lib/node_modules/plugman/src/util/config-changes.js:321:49)

It seems to be a problem with the plugin itself, because, if I use PushPlugin instead of the pushwoosh plugin, my app will be compiled correctly.

WP8 Phonegap Plugin not run never

Dear Friends,

I have trying to integrate the Pushwoosh WP8 SDK on Phonegap ( Dreamweaver, not hybrid ) , but not run in any case.

I have test a lot of combinations of code, but never get register device, and also, don´t have any push message.

1- Code of the Pushwoosh Guide web don´t run for me 2- Code of EddyVerbruggen don´t run for me, also their example don´t run. 3- I have change a lot of parameters. I have view a folder with the plugin and another parameters with framework src, src code, but i don´t know how to load plugin.xml manually.

In resume, i have not able to work pushwoosh with WP8 ( IOS and Android runs fast and easily ).

Thx you.

Phonegap 3.0 error

Hello,

I'm using the plugin with phonegap 3.0, whenever i build the project I get the following errors:

CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 55 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 55 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 142 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 157 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 171 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 192 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 238 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 240 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 248 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 256 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 295 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 345 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 564 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 569 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 569 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 574 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 579 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 579 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 584 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 598 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 598 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 603 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 608 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 608 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 613 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 618 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 618 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 623 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 628 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 628 Java Problem
CallbackContext cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 633 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 83 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 86 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 89 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 89 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 101 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 110 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 167 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 182 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 186 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 199 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 234 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 244 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 290 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 326 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 354 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 427 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 440 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 446 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 452 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 464 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 483 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 499 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 515 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 551 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 588 Java Problem
cordova cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 642 Java Problem
CordovaPlugin cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 39 Java Problem
CordovaPlugin cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 63 Java Problem
CordovaPlugin cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 123 Java Problem
CordovaPlugin cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 130 Java Problem
CordovaPlugin cannot be resolved to a type PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 139 Java Problem
The import org.apache.cordova.api cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 29 Java Problem
The import org.apache.cordova.api cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 30 Java Problem
The method onPause(boolean) of type PushNotifications must override or implement a supertype method PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 128 Java Problem
The method onResume(boolean) of type PushNotifications must override or implement a supertype method PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 121 Java Problem
webView cannot be resolved PushNotifications.java /project/src/com/pushwoosh/plugin/pushnotifications line 646 Java Problem

Any idea what I'm doing wrong?

Thanks in advance.

Command failed with exit code 65

Hi everyone,

I have successfully installed the cordova plugin for Android, and a couple of days ago in the same project for iOS as well. I removed it temporarily from the iOS app, and today tried to install again but this time without any success. Below is the error I get when I run cordova build ios. I am using the latest Ionic framework (Cordova CLI) to install the plugin.
I see that there have been some edits 2 days ago, is it possible that some bug was introduced now?
Big thanks for any help, it's a pretty urgent matter :)

The following build commands failed:
Ld build/emulator/MyApp.app/MyApp normal i386
(1 failure)
Error: /Users/xxxx/platforms/ios/cordova/build: Command failed with exit code 65

at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

PhoneGap 3.3

This plugin work fine when I use PG 3.1 in PhoneGap Build, but it doesn't work if I use 3.3. Just FYI

Android Issue

Hi, i build a webview with pushwoosh working perfect with ios, but i get this error on android : " there was a problem parsing the package" when i try to install template. If i remove from my config file the pushwoosh plugin " <gap:plugin name="com.pushwoosh.plugins.pushwoosh" version="3.0.1" />" all works good...so what is the problem?
This is my config file:

<name>Webview</name>

<description>
    Webview Template
</description>

<gap:plugin name="org.apache.cordova.console" />
<gap:plugin name="org.apache.cordova.device" />
<gap:plugin name="org.apache.cordova.inappbrowser" />
<gap:plugin name="org.apache.cordova.network-information" />
<gap:plugin name="org.apache.cordova.dialogs" />
<gap:plugin name="org.apache.cordova.splashscreen" />
<gap:plugin name="org.apache.cordova.vibration" />
<gap:plugin name="com.phonegap.plugin.statusbar" />
<gap:plugin name="com.rjfun.cordova.plugin.iad" />
<gap:plugin name="com.pushwoosh.plugins.pushwoosh" version="3.0.1" />

<preference name="phonegap-version" value="3.1.0"/>
<preference name="orientation" value="default"/>
<preference name="target-device" value="universal"/>
<preference name="Fullscreen" value="true"/>
<preference name="webviewbounce" value="false"/>
<preference name="prerendered-icon" value="true"/>
<preference name="stay-in-webview" value="true"/>
<preference name="ios-statusbarstyle" value="black-opaque"/>
<preference name="detect-data-types" value="true"/>
<preference name="exit-on-suspend" value="false"/>
<preference name="show-splash-screen-spinner" value="false"/>
<preference name="disable-cursor" value="false"/>
<preference name="android-minSdkVersion" value="7"/>
<preference name="android-installLocation" value="auto"/>

<access origin="*" />
<access origin="https://cp.pushwoosh.com"/>
<access uri="*" subdomains="true" />

<option name="webview_url" required="true" type="textfield" value="http://google.com"/>
<option name="overlay_statusbar" required="true" type="checkbox" value="0"/>
<option name="overlay_statusbar_style" required="true" type="select" options="dark|light" value="light"/>
<option name="enable_iad" required="true" type="checkbox" value="0"/>
<option name="iad_position" required="true" type="select" options="bottom|top" value="bottom"/>

Tnx for support ^^

Error 210 - "Application not found"

Hi,
I am trying to register to pushwoosh service via the registerDevice function, with the project number (from google api) and the app-id (from pushwoosh), and I get this error:
"Application not found".

Can you help me please?

Can't compile with iOS 6.0 target

Hi there,

I get this error when I'm trying to compile the plugin for iOS 6.0:

Undefined symbols for architecture i386:
"OBJC_CLASS$_CLBeaconRegion", referenced from:
objc-class-ref in Pushwoosh(PWBeaconsTracker.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I tried to fallback to commit 657487d, but it don't seem to help.

Any idea?

Thanks!

Is WP8 support in the works?

Hi,

This is a feature request: are you planning on making this plugin WP8 compatible?
I'm up for creating a fork and PR if not, but let me know what my chances are.

Thx,
Eddy

Notifications not working with ios8 - Pushwoosh + phonegap

I used these 2 files:

"Pushnotification.js"

(function(cordova) {

function PushNotification() {}

// Call this to register for push notifications and retreive a deviceToken
PushNotification.prototype.registerDevice = function(config, success, fail) {
    cordova.exec(success, fail, "PushNotification", "registerDevice", config ? [config] : []);
};

// Call this to set tags for the device
PushNotification.prototype.setTags = function(config, success, fail) {
    cordova.exec(success, fail, "PushNotification", "setTags", config ? [config] : []);
};

// Call this to send geo location for the device
PushNotification.prototype.sendLocation = function(config, success, fail) {
    cordova.exec(success, fail, "PushNotification", "sendLocation", config ? [config] : []);
};

PushNotification.prototype.onDeviceReady = function() {
    cordova.exec(null, null, "PushNotification", "onDeviceReady", []);
};

// Call this to get tags for the device
PushNotification.prototype.getTags = function(success, fail) {
    cordova.exec(success, fail, "PushNotification", "getTags", []);
};

//Android Only----
PushNotification.prototype.unregisterDevice = function(success, fail) {
    cordova.exec(success, fail, "PushNotification", "unregisterDevice", []);
};

//config params: {msg:"message", seconds:30, userData:"optional"}
PushNotification.prototype.createLocalNotification = function(config, success, fail) {
    cordova.exec(success, fail, "PushNotification", "createLocalNotification", config ? [config] : []);
};

PushNotification.prototype.clearLocalNotification = function() {
    cordova.exec(null, null, "PushNotification", "clearLocalNotification", []);
};

//advanced background task to track device position and not drain the battery
PushNotification.prototype.startGeoPushes = function(success, fail) {
    cordova.exec(success, fail, "PushNotification", "startGeoPushes", []);
};

PushNotification.prototype.stopGeoPushes = function(success, fail) {
    cordova.exec(success, fail, "PushNotification", "stopGeoPushes", []);
};

//sets multi notification mode on
PushNotification.prototype.setMultiNotificationMode = function(success, fail) {
    cordova.exec(success, fail, "PushNotification", "setMultiNotificationMode", []);
};

//sets single notification mode
PushNotification.prototype.setSingleNotificationMode = function(success, fail) {
    cordova.exec(success, fail, "PushNotification", "setSingleNotificationMode", []);
};

//type: 0 default, 1 no sound, 2 always
PushNotification.prototype.setSoundType = function(type, success, fail) {
    cordova.exec(success, fail, "PushNotification", "setSoundType", [type]);
};  

//type: 0 default, 1 no vibration, 2 always
PushNotification.prototype.setVibrateType = function(type, success, fail) {
    cordova.exec(success, fail, "PushNotification", "setVibrateType", [type]);
};  

PushNotification.prototype.setLightScreenOnNotification = function(on, success, fail) {
    cordova.exec(success, fail, "PushNotification", "setLightScreenOnNotification", [on]);
};

//set to enable led blinking when notification arrives and display is off
PushNotification.prototype.setEnableLED = function(on, success, fail) {
    cordova.exec(success, fail, "PushNotification", "setEnableLED", [on]);
};

//{goal:'name', count:3} (count is optional)
PushNotification.prototype.sendGoalAchieved = function(config, success, fail) {
    cordova.exec(success, fail, "PushNotification", "sendGoalAchieved", config ? [config] : []);
};

//Android End----

//iOS only----
PushNotification.prototype.startLocationTracking = function(backgroundMode, success, fail) {
    cordova.exec(success, fail, "PushNotification", "startLocationTracking", backgroundMode ? [{mode : backgroundMode}] : []);
};

PushNotification.prototype.stopLocationTracking = function(success, fail) {
    cordova.exec(success, fail, "PushNotification", "stopLocationTracking", []);
};

// Call this to get a detailed status of remoteNotifications
PushNotification.prototype.getRemoteNotificationStatus = function(callback) {
    cordova.exec(callback, callback, "PushNotification", "getRemoteNotificationStatus", []);
};

// Call this to set the application icon badge
PushNotification.prototype.setApplicationIconBadgeNumber = function(badgeNumber, callback) {
    cordova.exec(callback, callback, "PushNotification", "setApplicationIconBadgeNumber", [{badge: badgeNumber}]);
};

// Call this to clear all notifications from the notification center
PushNotification.prototype.cancelAllLocalNotifications = function(callback) {
    cordova.exec(callback, callback, "PushNotification", "cancelAllLocalNotifications", []);
};
//iOS End----

// Event spawned when a notification is received while the application is active
PushNotification.prototype.notificationCallback = function(notification) {
    var ev = document.createEvent('HTMLEvents');
    ev.notification = notification;
    ev.initEvent('push-notification', true, true, arguments);
    document.dispatchEvent(ev);
};

cordova.addConstructor(function() {
    if(!window.plugins) window.plugins = {};
    window.plugins.pushNotification = new PushNotification();
});

})(window.cordova || window.Cordova || window.PhoneGap);

And "app.js"

function registerPushwooshIOS() {
var pushNotification = window.plugins.pushNotification;

//push notifications handler
document.addEventListener('push-notification', function(event) {
            var notification = event.notification;
            //navigator.notification.alert(notification.aps.alert);

            //to view full push payload
            //navigator.notification.alert(JSON.stringify(notification));

            //reset badges on icon
            pushNotification.setApplicationIconBadgeNumber(0);
          });

pushNotification.registerDevice({alert:true, badge:true, sound:true, pw_appid:"69620-5C1D0", appname:"Maxistore"},
                                function(status) {
                                    var deviceToken = status['deviceToken'];
                                    console.warn('registerDevice: ' + deviceToken);
                                    onPushwooshiOSInitialized(deviceToken);
                                },
                                function(status) {
                                    console.warn('failed to register : ' + JSON.stringify(status));
                                    navigator.notification.alert(JSON.stringify(['failed to register ', status]));
                                });

//reset badges on start
pushNotification.setApplicationIconBadgeNumber(0);

}

function onPushwooshiOSInitialized(pushToken)
{
var pushNotification = window.plugins.pushNotification;
//retrieve the tags for the device
pushNotification.getTags(function(tags) {
console.warn('tags for the device: ' + JSON.stringify(tags));
},
function(error) {
console.warn('get tags error: ' + JSON.stringify(error));
});

//start geo tracking. PWTrackSignificantLocationChanges - Uses GPS in foreground, Cell Triangulation in background. 
pushNotification.startLocationTracking('PWTrackSignificantLocationChanges',
                                function() {
                                       console.warn('Location Tracking Started');
                                });

}

function registerPushwooshAndroid() {

var pushNotification = window.plugins.pushNotification;

//push notifications handler
document.addEventListener('push-notification', function(event) {
            var title = event.notification.title;
            var userData = event.notification.userdata;

            //dump custom data to the console if it exists
            if(typeof(userData) != "undefined") {
                console.warn('user data: ' + JSON.stringify(userData));
            }

            //and show alert
            //navigator.notification.alert(title);

            //stopping geopushes
            pushNotification.stopGeoPushes();
          });

//projectid: "GOOGLE_PROJECT_ID", appid : "PUSHWOOSH_APP_ID"
pushNotification.registerDevice({ projectid: "863823034249", appid : "69620-5C1D0" },
                                function(token) {
                                    alert(token);
                                    //callback when pushwoosh is ready
                                    onPushwooshAndroidInitialized(token);
                                },
                                function(status) {
                                    alert("failed to register: " +  status);
                                    console.warn(JSON.stringify(['failed to register ', status]));
                                });

}

function onPushwooshAndroidInitialized(pushToken)
{
//output the token to the console
console.warn('push token: ' + pushToken);

var pushNotification = window.plugins.pushNotification;

pushNotification.getTags(function(tags) {
                        console.warn('tags for the device: ' + JSON.stringify(tags));
                     },
                     function(error) {
                        console.warn('get tags error: ' + JSON.stringify(error));
                     });


//set multi notificaiton mode
//pushNotification.setMultiNotificationMode();
//pushNotification.setEnableLED(true);

//set single notification mode
//pushNotification.setSingleNotificationMode();

//disable sound and vibration
//pushNotification.setSoundType(1);
//pushNotification.setVibrateType(1);

pushNotification.setLightScreenOnNotification(false);

//goal with count
//pushNotification.sendGoalAchieved({goal:'purchase', count:3});

//goal with no count
//pushNotification.sendGoalAchieved({goal:'registration'});

//setting list tags
//pushNotification.setTags({"MyTag":["hello", "world"]});

//settings tags
pushNotification.setTags({deviceName:"hello", deviceId:10},
                                function(status) {
                                    console.warn('setTags success');
                                },
                                function(status) {
                                    console.warn('setTags failed');
                                });

function geolocationSuccess(position) {
    pushNotification.sendLocation({lat:position.coords.latitude, lon:position.coords.longitude},
                             function(status) {
                                  console.warn('sendLocation success');
                             },
                             function(status) {
                                  console.warn('sendLocation failed');
                             });
};

// onError Callback receives a PositionError object
//
function geolocationError(error) {
    alert('code: '    + error.code    + '\n' +
          'message: ' + error.message + '\n');
}

function getCurrentPosition() {
    navigator.geolocation.getCurrentPosition(geolocationSuccess, geolocationError);
}

//greedy method to get user position every 3 second. works well for demo.

// setInterval(getCurrentPosition, 3000);

//this method just gives the position once

// navigator.geolocation.getCurrentPosition(geolocationSuccess, geolocationError);

//this method should track the user position as per Phonegap docs.

// navigator.geolocation.watchPosition(geolocationSuccess, geolocationError, { maximumAge: 3000, enableHighAccuracy: true });

//Pushwoosh Android specific method that cares for the battery
pushNotification.startGeoPushes();

}

function initPushwoosh() {
var pushNotification = window.plugins.pushNotification;
if(device.platform == "Android")
{
registerPushwooshAndroid();
pushNotification.onDeviceReady();
}

if(device.platform == "iPhone" || device.platform == "iOS")
{
    registerPushwooshIOS();
    pushNotification.onDeviceReady();
}

}

Not receiving any action when I click notification alert in Android

I'm using this code to initialise Pushwoosh:
// Initi pushWoosh
function initPushwoosh() {
var pushNotification = window.plugins.pushNotification;

document.addEventListener('push-notification',
  function(event)
  {
    var title = event.notification.title;
    var userData = event.notification.userdata;

    //dump custom data to the console if it exists
    if(typeof(userData) != "undefined") {
      console.warn('user data: ' + JSON.stringify(userData));
    }

    //and show alert
    alert(title);

  }
);

pushNotification.onDeviceReady({ projectid: GOOGLE_PROJECT_ID, appid : PUSH_APP_ID });

 //register for pushes
pushNotification.registerDevice(
    function(status) {
        var pushToken = status;
        console.warn('push token: ' + pushToken);
         // Add device to mixpanel user.
        mixpanel.people.set({
                              "$android_devices": [pushToken]
                            });

        // Save device token in server
        registerDeviceToServer(pushToken);

        // save device token
        localStorage.setItem("device-token", pushToken);
    },
    function(status) {
        console.warn(JSON.stringify(['failed to register ', status]));
    }
);

}

Notifications are been received successfully, but when I clicked one of them, the app opens but event listener 'push-notification' is never called.

Am I missing something?

Plugin broken on Phonegap Build

We were getting javascript errors and our app was crashing, so we investigated.

It turns out Phonegap Build is not adding the Pushwoosh plugin correctly.

We built your sample project from here https://github.com/Pushwoosh/phonegap-3-sample-app without modifying it, and then extracted the .ipa file: http://cl.ly/image/2t1E3P0M0H2S

You’ll notice that PushNotification.js is in the root www folder, when it should be in the www/plugins folder (inside of other folders). The data for pushwoosh is also missing from the cordova_plugins.js file: http://cl.ly/image/2n0S4726151I

This is causing this line of javascript to throw an undefined error:

var pushNotification = window.plugins.pushNotification;

If we get past this line, it's either crashing the app or not registering with Pushwoosh.

We used the latest plugin in our config.xml: <gap:plugin name="com.pushwoosh.plugins.pushwoosh" version="3.0.2" />

Please help!

Android banner image not getting resized..

Hi Shaders,

I was recently using pushwoosh phonegap plugin for android , whenever i push a notification,android banner image is not getting resized in the notification bar as per the screen size ...please check once ..

Regards

Vaibhav

Common script for ios and android

Hi,
Pushwoosh for cordova is very useful.. The major drawback is that we need to add javascript function to each platform..

With Cordova being so advanced is it not possible to mention the code directly in the common www folder where android app will take one code and register in GCM while iOS will take the relevant function and register in APNs..

something like aerogear :
var pushConfig = {
pushServerURL: "<pushServerURL e.g http(s)//host:port/context >",
alias: "",
android: {
senderID: "",
variantID: "<variantID e.g. 1234456-234320>",
variantSecret: "<variantSecret e.g. 1234456-234320>"
},
ios: {
variantID: "<variantID e.g. 1234456-234320>",
variantSecret: "<variantSecret e.g. 1234456-234320>"
}
};

Please advice

android background push not working?

Hello, I have implemented pushwoosh in my phonegap app, but when my user go out of the app they cannot receive push notifications from my pushwoosh PHP script. but they do when I send from pushwoosh.com... iOS receives push no matter what I use.

setTarget Issue

The Pushwoosh team informed me that the java files are not updated on GitHub. As the functionality to set target push notifications is not available.

IDFA check on Apple AppStore submission

Since yesterday Apple rejects all apps using the IDFA and not using in-app ads. So there is currently no way to deploy iOS apps using PushWoosh that are not using ads.

Problem is the use of the "advertisingIdentifier" property from the ASIdentifierManager. The code is in PushNotificationManager.m, line 135.

Support for PhoneGap 3.3.0 in PhoneGap Build?

Should this plugin work with PhoneGap 3.3.0 in PhoneGap build? I was not able to get it working in my app, but reverting to PhoneGap 3.1.0 seems to work. I would prefer to keep my application on 3.3.0, however. Are there any modifications that can be made to enable usage for 3.3.0?

Thanks!

setTags not working

Do you have an example on how to call setTags() using this plugin API?

After the device is registered, I call this code, which does not get a success or fail result.
pushNotification.setTags({
userId: userId
},
function(status) {
$('#notif').prepend('

Tags Set:'+JSON.stringify(status)+'

');
},
function(status) {
$('#notif').prepend('Tags Failed

'+JSON.stringify(status)+'

');
});

If the plugin API doesn't support setTags, I'd like to use the remote API to set the tags. How do I get the "hwid" used in registerDevice that the remote API requires (see docs below)

Method /setTags
Set tags values for device
Request:
{
"request":{
"application":"DEAD0-BEEF0",
"hwid": "device hardware id",
"tags": {
"tag1": "string value",
"tag2": 42,
"tag3": "string"
}
}
}
Parameters:
application – your Pushwoosh application ID where you send the message to
hwid – hardware device id used in registerDevice function call
tags – tags to set

Issue with latest version of Phonegap

I've had a working version of the pushwoosh plugin until I just updated it.

I'm using 3.5.0-0.20.10 of Phonegap and the latest version of the pushwoosh plugin from Github.
No I get the following during the initialization.

~07-31 21:10:26.131: W/System.err(1443): org.json.JSONException: Index 0 out of range [0..0)
07-31 21:10:26.131: W/System.err(1443): at org.json.JSONArray.get(JSONArray.java:263)
07-31 21:10:26.135: W/System.err(1443): at org.json.JSONArray.getJSONObject(JSONArray.java:480)
07-31 21:10:26.135: W/System.err(1443): at com.pushwoosh.plugin.pushnotifications.PushNotifications.initialize(PushNotifications.java:151)
07-31 21:10:26.135: W/System.err(1443): at com.pushwoosh.plugin.pushnotifications.PushNotifications.execute(PushNotifications.java:361)
07-31 21:10:26.139: W/System.err(1443): at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
07-31 21:10:26.139: W/System.err(1443): at org.apache.cordova.PluginManager.execHelper(PluginManager.java:242)
07-31 21:10:26.143: W/System.err(1443): at org.apache.cordova.PluginManager.exec(PluginManager.java:227)
07-31 21:10:26.143: W/System.err(1443): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
07-31 21:10:26.147: W/System.err(1443): at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:227)
07-31 21:10:26.147: W/System.err(1443): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
07-31 21:10:26.147: W/System.err(1443): at android.os.Handler.dispatchMessage(Handler.java:99)
07-31 21:10:26.151: W/System.err(1443): at android.os.Looper.loop(Looper.java:137)
07-31 21:10:26.151: W/System.err(1443): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-31 21:10:26.155: W/System.err(1443): at java.lang.reflect.Method.invokeNative(Native Method)
07-31 21:10:26.155: W/System.err(1443): at java.lang.reflect.Method.invoke(Method.java:511)
07-31 21:10:26.155: W/System.err(1443): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-31 21:10:26.159: W/System.err(1443): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-31 21:10:26.159: W/System.err(1443): at dalvik.system.NativeStart.main(Native Method)
07-31 21:10:26.163: D/PushNotifications(1443): Plugin Called
07-31 21:10:26.167: W/System.err(1443): java.lang.NullPointerException
07-31 21:10:26.167: W/System.err(1443): at com.pushwoosh.plugin.pushnotifications.PushNotifications.internalRegister(PushNotifications.java:183)
07-31 21:10:26.170: W/System.err(1443): at com.pushwoosh.plugin.pushnotifications.PushNotifications.execute(PushNotifications.java:368)
07-31 21:10:26.170: W/System.err(1443): at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
07-31 21:10:26.174: W/System.err(1443): at org.apache.cordova.PluginManager.execHelper(PluginManager.java:242)
07-31 21:10:26.174: W/System.err(1443): at org.apache.cordova.PluginManager.exec(PluginManager.java:227)
07-31 21:10:26.174: W/System.err(1443): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
07-31 21:10:26.178: W/System.err(1443): at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:227)
07-31 21:10:26.178: W/System.err(1443): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
07-31 21:10:26.178: W/System.err(1443): at android.os.Handler.dispatchMessage(Handler.java:99)
07-31 21:10:26.182: W/System.err(1443): at android.os.Looper.loop(Looper.java:137)
07-31 21:10:26.182: W/System.err(1443): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-31 21:10:26.186: W/System.err(1443): at java.lang.reflect.Method.invokeNative(Native Method)
07-31 21:10:26.190: W/System.err(1443): at java.lang.reflect.Method.invoke(Method.java:511)
07-31 21:10:26.190: W/System.err(1443): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-31 21:10:26.190: W/System.err(1443): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-31 21:10:26.194: W/System.err(1443): at dalvik.system.NativeStart.main(Native Method)

please please help , if I do not get a solution I will have to use something else

Phonegap Build error, plugin unsupported

Using the config.xml and "phonegap remote build android" I get back.

   [error] {"error":"plugin unsupported: com.pushwoosh.plugins.pushwoosh"}

config.xml excerpt

<feature name="http://api.phonegap.com/1.0/device" />
<preference name="phonegap-version"     value="3.0.0" />
....
<gap:plugin name="org.apache.cordova.core.device" />
<gap:plugin name="org.apache.cordova.core.dialogs" />
<gap:plugin name="org.apache.cordova.core.vibration" />

<gap:plugin name="com.pushwoosh.plugins.pushwoosh" />

I have tried
<gap:plugin name="com.pushwoosh.plugins.pushwoosh" version="3.0.2" />

edit: i see now that this is related to: http://community.phonegap.com/nitobi/topics/pushwoosh_plugin_wont_allow_build

PushNotification.js is different with phonegap build

Hi,

I am building my app against both Locally and remotly ( Using build.phonegap.com )
I found out that my local build uses the master branch even though phonegap build uses the tree version https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/tree/4e652620ed898ea02c40f3b74dbc45b2929932d4

This is an issue since I don't want to have two different code to handle local and remote build.
Example:

Tree version:
PushNotification.prototype.registerDevice = function(config, success, fail) {
cordova.exec(success, fail, "PushNotification", "registerDevice", config ? [config] : []);
};

Master version:
PushNotification.prototype.registerDevice = function(success, fail) {
exec(success, fail, "PushNotification", "registerDevice", []);
};

Is there a reason for this discrepancy ?

Thank you

Hydratation broken on phonegap build

hello

I just use the current plugin without any change in my own project, but also i tried with putting all code in a new phonegap build and get same issue, all is working fine without Hydratation, but as soon as i try to hydrate a project with this plugin i get following error for Android :

"plugman install --platform android --project //app/dist --plugin //db1dab28-3578-11e3-92ef-12313d16b935": Cannot call method 'trim' of null

tanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.