Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8977439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:22:17+00:00 2026-06-15T19:22:17+00:00

I created an app for iPhone and Android using Phonegap. Now I wanted to

  • 0

I created an app for iPhone and Android using Phonegap.

Now I wanted to add push functionality which already works pretty good.

When a push message arrives on my iPhone I get a message on the homescreen. If I swipe it, iOS will open my application. – So far so good.

Now, within my PhoneGap app I need to check what that message actually says in order to open the correct view within my app via JavaScript.

I know there are quite some posts about this but I couldn’t find some clear answers to these questions:

  • Does PhoneGap support push messages?
  • If yes, where is the documentation for that?
  • If not, which plugins/frameworks can be recommended? So far I found pushwoosh and Urbanair. Are they any good?
  • Regarding Pushwoosh, I noticed that I need some kind of pushwoosh ID – Why that?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:22:18+00:00Added an answer on June 15, 2026 at 7:22 pm

    I found a really easy solution without using a framework.

    I simply added the following code to the very end of the method didFinishLaunchingWithOptions (Right before the return statement):

    if (launchOptions != nil)
    {
        NSDictionary* dictionary = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
        if (dictionary != nil)
        {
            NSLog(@"Launched from push notification: %@", dictionary);
            [self addMessageFromRemoteNotification:dictionary updateUI:NO];
        }
    }
    

    Also, I added this new method to my AppDelegate.m which gets the payload from the push message:

    - (void)application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo
    {
        NSLog(@"Received notification: %@", userInfo);
        [self addMessageFromRemoteNotification:userInfo updateUI:YES];
    }
    

    (The NSLog calls above will show you what’s inside the push message)

    As a last step, I added this listener to do what ever I want with the payload:

    - (void)addMessageFromRemoteNotification:(NSDictionary*)userInfo updateUI:(BOOL)updateUI
    {
     // do what ever you want with userInfo
    }
    

    If you want to do an additional JavaScript call with this info, I recommend using:

    [self.viewController.webView stringByEvaluatingJavaScriptFromString:@"callSomeJSFunction()"];
    

    Of course you can also pass arguments as strings into that JS function if you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an iPhone app which works perfectly smooth on my simulator. Now
Has anyone successfully created an Extjs app that works on iPhone, iPad and Android?
I created an app in HTML/CSS. It works fine in the iPhone. Now I'm
I am developing an App using Titanium for iPhone and Android. I created a
I created a sencha touch 2/phonegap app that works fine on android, and needed
I've created a simple iPhone app which has two .xib files. In the app
I have created a mobile app using Phonegap Build (not just Phonegap...but Build ).
I am planning to create a cross platform application which works in Android, iPhone
I use the childbrowser in my jqtouch - phonegap iPhone app and have now
I would like to create a mobile app for iPhone, iPad and Android (don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.