Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 385
Registered: ‎07-20-2012
My Device: Blackberry Z10 (White), BlackBerry Dev Alpha C
My Carrier: O2 UK
Accepted Solution

Foursquare Check-in Card

Hello, 

 

I am trying to use a foursquare checkin card for a specific location. 

 

Here is the code I am currently using: 

 

    actions: [
        ActionItem {
            title: qsTr("Check In")
            imageSource: "asset:///IMG/ic_location.png"
            ActionBar.placement: ActionBarPlacement.OnBar

            onTriggered: {
                invokefs.trigger("bb.action.OPEN")
            }
        }
    ]
    attachedObjects: [
        Invocation {
            id: invokefs
            query {
                uri: "foursquare://checkins/50a08609e4b04c46ea54446d"
                invokeActionId: "bb.action.OPEN"
                invokeTargetId: "com.foursquare.blackberry.uri"
            }
        }
    ]

 But when clicking on the actionItem it doesn't open the card. 

 

Does anyone have any suggestions? 

 

Thanks in advance Smiley Happy

Highlighted
Developer
Posts: 385
Registered: ‎07-20-2012
My Device: Blackberry Z10 (White), BlackBerry Dev Alpha C
My Carrier: O2 UK

Re: Foursquare Check-in Card

Update: the code invokes the FourSquare app to open; I was testing on a Dev Alpha C where FourSquare is not available hence why the app would not open.