Code Monkey home page Code Monkey logo

Comments (4)

parfeon avatar parfeon commented on July 20, 2024

Hello @biznickman

Can you check whether you are running our latest version of PubNub SDK (3.5.4) from Xcode console when you are running the app?

Not sure on whether I get your point, but do you try to send messages while application in background? Do you have any "Required background modes" specified in Info.plist?

P.S. If it is possible, can you contact us with this issue on [email protected] and attach log files from Document folder for your application (if on iOS) and user Document folder (in case of Mac OS). Files will be named as: pubnub-console-dump.txt

Best regards,
Sergey Mamontov

from objective-c.

parfeon avatar parfeon commented on July 20, 2024

@biznickman also do you subscribed to any channels before application enters background execution context?

If there is "Required background modes" in Info.plist, make sure to implement - (BOOL)shouldRunClientInBackground delegate method which will return NO - it will allow PubNub client to suspend itself while application entering background. There is special cases when one of "Required background modes" will allow to run application persistently in background - for this cases there is no need to implement suggested method above. But if you can't keep your application running persistently in background (in case if any value specified in "Required background modes") you need to implement suggested delegate method and return NO from it.

Best regards,
Sergey Mamontov

from objective-c.

biznickman avatar biznickman commented on July 20, 2024

Hi @parfeon,

Thanks for the rapid response. I'm happy to shoot you an email. However a couple quick notes:

  1. I'm using 3.5.3 as that's the latest version of the .podspec file (I'm using cocoapods).
  2. I'm not trying to send a message while in the background. So no, I don't have "Required background modes". The actions to reproduce are as follows: Load app --> Create message (it works) --> let the device go to sleep --> awake device --> send message (it doesn't work) --> let the device go to sleep ---> awake device --> message is sent
  3. I'm using iOS but not sure what document folder you are referring to.

Best regards,
Nick

from objective-c.

geremyCohen avatar geremyCohen commented on July 20, 2024

Confirmed with him that this branch fixes the issue: https://github.com/pubnub/objective-c/tree/feature-master-pt64287520/iOS/iPadDemoApp/pubnub/libs

It will be merged to master within a day as version 3.5.5.

from objective-c.

Related Issues (20)

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.