This article details available deep links for use with PBJ mobile apps.
Deep linking allows an app to launch onto a specific page once a user clicks a URL either on the web or within an app. Utilising deep links is a sure way to optimise the user experience and increase conversion rates.
Prerequisites
- A PBJ app
Link Types
Play – Lottery Specific
Description
Will popup the ticket purchase page for the next upcoming draw for the given lottery.
Format
$target://play/$LOTTERY_ID
Examples
materlotteries://play/mater_prize_home
materlotteries://play/mater_cars_for_cancer
deaflottery://play/deaf_lottery
deaflottery://play/deaf_lottery_dream_drive
Play – Draw Specific
Description
Will popup the ticket purchase page for the given lottery and draw number.
Format
$target://play/$LOTTERY_ID/$DRAW_NUM
Examples
materlotteries://play/mater_prize_home/294
materlotteries://play/mater_cars_for_cancer/88
deaflottery://play/deaf_lottery/192
deaflottery://play/deaf_lottery_dream_drive/1001
Ticket
Description
Will show the ticket details of the relevant ticket ID.
Format
$target://ticket/$TICKET_ID
Examples
materlotteries://ticket/XXXX-XXXX-XXXX-XXXX
deaflottery://ticket/XXXX-XXXX-XXXX-XXXX
Draw Results
Description
Will show the draw results for the given draw number of the given lottery.
Format
$target://draw/$LOTTERY_ID/$DRAW_NUM
Examples
materlotteries://draw/mater_prize_home/294
materlotteries://draw/mater_cars_for_cancer/88
deaflottery://draw/deaf_lottery/192
deaflottery://draw/deaf_lottery_dream_drive/1001
Forgot Password
Description
Will deep link to the login form and pre-fill the given temporary password (if provided). If someone is already logged in, nothing will happen.
Format
$target://forgot-password/$TEMPORARY_PASSWORD
Examples
materlotteries://forgot-password/1234
deaflottery://forgot-password/1234
Account Summary
Description
Link to the account summary page. If the device is not logged in, the link will be ignored.
Format
$target://account-summary
Examples
materlotteries://account-summary
deaflottery://account-summary
Account
Description
Link to the account page. If the device is not logged in, the customer will be sent to the login form on the account tab.
Format
$target://account
Examples
materlotteries://account
deaflottery://account
AutoPlay Management
Description
Link to the account autoplay management. If the device is not logged in, the link will be ignored.
Format
$target://autoplay-manage
Examples
deaflottery://autoplay-manage
Cart
Description
Link to the cart.
Format
$target://cart
Examples
materlotteries://cart
deaflottery://cart
Buy
Description
Purchase a product and display the cart.
Format
$target://buy?query
Examples
materlotteries://buy?lottery=mater_prize_home&offer=15_book_10
deaflottery://buy?lottery=deaf_lottery&offer=10_book_20
Buy With Recurring Purchase
Currently only available for iOS.
Description
Purchase a product with recurring purchases enabled and display the cart.
Format
$target://buy?query
Examples
materlotteries://buy?lottery=mater_prize_home&offer=15_book_10&autoplay=true
deaflottery://buy?lottery=deaf_lottery&offer=10_book_20&autoplay=true
Play
Description
Will open the root play screen.
Format
$target://play
Examples
materlotteries://play
deaflottery://play
Draw
Description
Will open the root results screen.
Format
$target://draw
Examples
materlotteries://draw
deaflottery://draw