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 6754513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:17:23+00:00 2026-05-26T13:17:23+00:00

I am writing a iphone application using phonegap and ios. I have a weird

  • 0

I am writing a iphone application using phonegap and ios. I have a weird problem. I have a NSString which holds a json string in my objective c plugin class. And then I call the callback function provided by running Phonegap.exec, however the callback neither the success or failure gets called. Here is some code:

PluginResult* pluginResult = [PluginResult resultWithStatus: PGCommandStatus_OK messageAsString: jsonString ];
        [self writeJavascript:[pluginResult toSuccessCallbackString:self.callbackID]];

my success callback simply alerts the argument passed. The weird thing is that, if I pass in a non jsonString for example replacing jsonString with just some regular message, say @"Hello-word" then it works, and the success callback gets called and the argument gets alerted. Anyone have any idea what going on?

  • 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-05-26T13:17:24+00:00Added an answer on May 26, 2026 at 1:17 pm

    The problem was that I had a literal quote in my jsonString, but my jsonString was hardcoded. Instead of doing this, I just used a messageAsDictionary with the appropriate mapped values, and I could still interpret the data recieved my javascript as json object.

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

Sidebar

Related Questions

I am writing a string tokenizer in Objective-C for an iPhone application . I
I'm writing an iPhone application which needs to have an option to call our
I am writing an application using Objective-C for iPhone. In this application, the user,
I have a question about the objective C. I am writing the iPhone application
I'm writing a POS application for the iPhone/iPod combination, using the same exact hardware
I am writing an iPhone application which in numerous places needs to perform non
I am writing an iPhone application which requires the user to enter several values
I have a children's iPhone application that I am writing and I need to
I'm writing an iPhone Application using the ASIHTTPRequest (http://allseeing-i.com/ASIHTTPRequest/) library for REST interactions to
I'm writing an iPhone application which you need to authenticate at the beginning. Therefore

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.