Giter VIP home page Giter VIP logo

simulatorremotenotifications's Issues

cordova plugin?

Is there a Cordova/Phonegap available?

How easy/hard would it be to use it in Cordova apps?

Change NULL to '\0'

at 44 line in UIApplication+SimulatorRemoteNotifications.m

How about change

__buffer[size] = NULL;
to
__buffer[size] = '\0';

for turn of [ Incompatible pointer to integer conversion assigning to 'char' from 'void *' ] warning ?

Updated notification payload size for iOS >= 8

Hello!
First of all, I'd like to thank you for this nice tool!

I'm trying to simulate some notifications on an iOS 9 device, which supports a new payload size limit of either 2KB or 4KB. However, SimulatorRemoteNotification seems to truncate the payload after a certain amount of bytes (256?), which results in the following error:

SimulatorRemoteNotification: error = Error Domain=NSCocoaErrorDomain Code=3840
"Unterminated string around character 313." UserInfo={NSDebugDescription=Unterminated
 string around character 313.}

I tried multiplying the values of the following constants by 8, but this seemed to have no effect:

UIApplication+SimulatorRemoteNotifications.m\SimulatorRemoteNotificationsBufferLength
ACSimulatorRemoteNotificationsService.m\SimulatorRemoteNotificationsServiceBufferLength

How can the code be modified to support the increased payload size?

P.S.
I know the payload I'm testing is valid because it gets delivered successfully through APNS when testing with a real device.

(Edit: updated the link to the documentation where the payload size is discussed)

didReceiveRemoteNotification: fetchCompletionHandler - background

Hi, thanks a lot for this library !

didReceiveRemoteNotification: fetchCompletionHandler is called even if the app is in background when I send a notification from your iOS Simulator Notifications. (on 4s 9.0)

In your documentation, you said:
Note that if you send a notification while the app is in the background, application:didReceiveRemoteNotification:fetchCompletionHandler: will only be called when you bring the app to the foreground.

How to call it only when I bring the app to the foreground ?

Does this support IOS7?

It seems that it does not work in IOS7. My environment is MAC OSX 10.9/Xcode5.0.2/IOS7.

I excited the commands in terminal but nothing happened,why?

real remote notificate

Is that could be possible awake my App after i end it, just like a Apple push server?

Error with Code = 3840

I send two JSON's:
echo -n '{"aps":{"alert" : "message","badge" : 99,"sound" : "default"},"storeId" : 5475878}' | nc -4u -w1 localhost 9930

echo -n '{"aps":{"alert" : "message","badge" : 99,"sound" : "default"},"storeId" : 54758}' | nc -4u -w1 localhost 9930

Difference only in storeId. First works fine, but second causes error:
SimulatorRemoteNotification: error = Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (Garbage at end.) UserInfo=0xb23dc90 {NSDebugDescription=Garbage at end.}

I tried to resolve this issue but failed:
When we take string from buffer in second case string looks like this:
{"aps":{"alert" : "message","badge" : 99,"sound" : "default"},"storeId" : 54758 }}

Two braces instead of one in first case.

I don't understand how could it be.

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.