iOS Background Support: Local notifications

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found out something new:

After 10 minutes (600 seconds) I get the local notification!
I tried this some times. 600 seconds are the minimum acceptable timeout
value of the - (BOOL)setKeepAliveTimeout:(NSTimeInterval)timeout
handler:(void(^)(void))keepAliveHandler method.

This is really strange, but 600 seconds are definitly to long.
It seems the app will doesn?t wake up. Any ideas?

Regards,
Chris

2010/9/9 Sauw Ming <ming at teluu.com>

> Hi Chris,
>
> One more thing, can you test whether you can answer the call
> successfully if you bring the application to the foreground? (i.e. put
> the app in BG, make a call to the app, then bring the app to FG)
>
> Regards,
> Ming
>
> On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming <ming at teluu.com> wrote:
> > Hi Chris,
> >
> > First, could you please share the device, iOS, and the SDK version you
> > used for testing?
> >
> > When there is an incoming call, try checking whether ipjsua's
> > pjsua_app.c:on_incoming_call() callback is executed. If not, then
> > verify whether ipjsua is still running in the background (i.e. it does
> > not crash).
> >
> > That's all that I can think of for now.
> >
> > Regards,
> > Ming
> >
> > On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736 at googlemail.com>
> wrote:
> >> Hi Ming,
> >> this values are defined and I there is no error message in the log. I
> added
> >> some lines in activesock.c:
> >> else
> >> {
> >>    PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
> >>      "usage. Background mode will be supported."));
> >> }
> >> And it is successfully.
> >> Can I log if the socket connection will be lost?
> >> Thank you,
> >> Chris
> >> 2010/9/8 Sauw Ming <ming at teluu.com>
> >>>
> >>> Hi Chris,
> >>>
> >>> 1. Please check that the value of
> >>> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
> >>> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
> >>> pjlib/include/pj/compat/os_auto.h
> >>> 2. Please check whether TCP transport can work successfully in the
> >>> background, i.e. there is no message saying that: "Failed to configure
> >>> TCP transport for VoIP usage. Background mode will not be supported."
> >>> in the log.
> >>>
> >>> Best regards,
> >>> Ming
> >>>
> >>> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736 at googlemail.com>
> >>> wrote:
> >>> > Hi!
> >>> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
> >>> > background feature).
> >>> > An active call works fine in backgound, but local notifications
> doesn?t
> >>> > works for me if App is in background or device is locked.
> >>> > I tried the ipjsua.xcodeproj and my own project. Is there still any
> >>> > probleme
> >>> > or can you give me any hints how it works?
> >>> > Thanks,
> >>> > Chris
> >>> > _______________________________________________
> >>> > Visit our blog: http://blog.pjsip.org
> >>> >
> >>> > pjsip mailing list
> >>> > pjsip at lists.pjsip.org
> >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >>> >
> >>> >
> >>>
> >>> _______________________________________________
> >>> Visit our blog: http://blog.pjsip.org
> >>>
> >>> pjsip mailing list
> >>> pjsip at lists.pjsip.org
> >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >>
> >>
> >> _______________________________________________
> >> Visit our blog: http://blog.pjsip.org
> >>
> >> pjsip mailing list
> >> pjsip at lists.pjsip.org
> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >>
> >>
> >
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100909/14c8dc24/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux