iOS Background Support: Local notifications

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

 



Hi Andr?,

yes this properties are set. I?m using the ipjsua demo project. Have you
successfully implemented the local notifications into your application?

Regards,
Chris

2010/9/9 <eaf at oyatel.no>

> Have you set the required  UIBackgroundModes properties in the Info.plist
> for your application?
>
> See attached screenshot for reference.
>
>
> Best regards,
> Even Andr?
>
> On 9. sep. 2010, at 13.59, Chris Foba wrote:
>
> Hi Ming,
>
> thank you for your reply. I tested some things:
>
> I can answer the call when I bring the app to foreground.
>
> Function pj_bool_t showNotification(pjsua_call_id call_id) will be called,
> BUT not until when the app comes back to foreground. So all handler will be
> called but not in background mode!?
>
> Do you have any ideas?
>
> I?m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2.
>
> 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
>>
>
> _______________________________________________
> 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/683e5a1a/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