IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Adding URL Handler to mobile app on iOS

    Posted Wed January 30, 2013 10:40 PM

    Hi all,

    I have been following the instructions on the following web page ([url=‘mobiledevelopertips.com’]mobiledevelopertips.com) to allow the app to open on following a URL link.

    The problem I have is how to implement the entry method which is in Objective-C:

    • (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url

    {

    // Do something with the url here

    }

    Does anyone know how I would add this either to the java source or to the cross-compiled code?

    When I do add this as-is to the MyApplication.mm it does not compile.

    Cheers

    Ian


    #webMethods
    #mobile
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Adding URL Handler to mobile app on iOS

    Posted Thu January 31, 2013 04:57 AM

    Hi Ian,

    You can actually do this with the J2ME platform request call. On most platforms it responds to http, https and tel prefixes to launch the browser and dialer.

    But on iphone you can launch any app through that method, e.g. for a users profile on Facebook

    midlet.platformRequest("fb://profile");

    this is an excellent resource: [url=‘akos.ma’]akos.ma

    Cheers,
    Matt


    #mobile
    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 3.  RE: Adding URL Handler to mobile app on iOS

    Posted Thu January 31, 2013 06:02 AM

    Thanks Matt,

    That’s good and means I don’t have to modify the Plist file.

    My question was more around how to write the handler method as it is always shown in Objective-C and doesn’t compile when I copy it into our cross-compiled files…

    Can you help?

    Cheers

    Ian


    #webMethods-General
    #mobile
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Adding URL Handler to mobile app on iOS

    Posted Thu January 31, 2013 06:47 AM

    Hi Ian,

    Our "NativeUIMyNativeElement" or "NativeUIPDFDemo" projects might be useful here. Both these show how to inject native iOS code (and code for other platforms) into Mobile Designer projects. The platform specific code additions can be found in the "native" folders in these projects, and the hookpoint in each project’s "defaults.xml" copies these bits of replacement code into the build chain from the Multi-Build dialog.

    Chapter 4 of "NativeUIMyNativeElement\docs_NativeUIMyNativeElement_.pdf" gives more details on how to incorporate these concepts into a new project.

    Regards,

    Nick.

    (Mobile Designer Development Team)


    #webMethods
    #mobile
    #webMethods-General
    #Integration-Server-and-ESB