Comments (4)
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.
@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.
Hi @parfeon,
Thanks for the rapid response. I'm happy to shoot you an email. However a couple quick notes:
- I'm using 3.5.3 as that's the latest version of the .podspec file (I'm using cocoapods).
- 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
- I'm using iOS but not sure what document folder you are referring to.
Best regards,
Nick
from objective-c.
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)
- Crash using library : [__NSMallocBlock__ handleClientConnectionStateChange:]: unrecognized selector sent to instance 0x17044e460 HOT 3
- Decryption error HOT 1
- Can't disable logger HOT 6
- Crash: EXC_CRASH (SIGSEGV) SIGNAL 11 Segmentation fault: 11
- 3.6.2 Released!
- requestHistoryForChannel: callback never called HOT 4
- When is the mentioned update for aps / APNs handling going to come out? HOT 6
- PubNub Crashes upon subscription HOT 4
- 3.6.3 Released!
- Retrieve Channel History HOT 2
- TableLoad before Request History HOT 3
- Multiple channel subscriptions with different cipher, subscribe, and auth keys HOT 1
- Python - publishing to APNS HOT 1
- Has any one got this working with swift and cocoapods? HOT 2
- Several crashes in 3.7.10.4 HOT 6
- PNJSONSerialization replacing NSNull characters during serialization prevents proper deserialization HOT 1
- PNImports.h file not found HOT 10
- Can't update sdk from COcoa pods any more HOT 4
- Does character ":" (colon) has special meaning in the channel name? HOT 5
- Cannot use the library in an app extension. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objective-c.