So This day I am going to discuss straightforward techniques to salvage long url to quick link with firebase dynamic link
{tocify} $title={Table of Contents}
Mediate
So first I will make a ui for this app right here is a instance of app ui. I extinct a edittext to salvage long link a button to generate link. A textview to salvage generated link.
Library
Add firebase mission on your sketchware and flip on appcompact library.
Oncreate
Depart oncreate share empty
Ingredients share
Add an converse of community part as confirmed in image.
On Button Click
Add a string I extinct url_to_shorten as string title Add an one other string named json
In the price of json accomplish that a be part of and one other be part of block within this block.
Code for first segment
{
“longDynamicLink”: “https://sketchprojects.page.link/?link=
Alternate with you dynamic link
After that add you string variable (whose price is long url)
Code for 2d segment
“,
“suffix”: {
“possibility”: “SHORT”
}
}
Keep an converse of community block whose parama are draw
Add 2d question of community block with ability salvage and url
https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=ADD_YOUR_FIREBASE_API_KEY
Add 2 Ingredients as confirmed in image .
Inquire of community on response
Keep asd attempt{
In yell that that you can perhaps perhaps get rid of error
Then salvage json response to attract
Then text direct text draw salvage key shortLink
After which get rid of exception
On community no response
Attain no topic you like to support out with it
I added textview direct text error
Performed now lope and test the app
If any error caught observation below or inch away a message to https://telegram.canine/haryanvee
https://bestprosite.shop/sketchware-generate-firebase-dynamic-hyperlink-prolonged-url-to-quick-sketchware-blocks-explained/
No comments:
Post a Comment