David
( David Ningthoujam)
July 27, 2018, 8:42am
#1
This guide will help you if your app is not on playstore or you want to update your app automatically without going to playstore. just follow me.
Required components
*Firebase (to get/store latest version and Url)
*Web (to download latest version)
*Notifier (to notify users for update)
*Tinydb (only if you want to add version in your app name ex. hello v1.2)
*Activity starter ( to install the latest apk)
1. Check for update
The following blocks to check for update
2. When firebase got value
The following blocks will show what to do when firebase got value
3. Notifying users and getting url
The following blocks to tell user if update is available and the store the url of your app
4. After choosing dialog(Downloading update)
The following blocks show what to do after choosing
5. installing update
The following blocks installs the latest update after downloading.
Activity starter properties
Action = android.intent.action.MAIN
Activity Class = com.android.pakageinstaller.PakageinstallerActivity
Activity Package = com.android.pakageinstaller
Data Uri = file:///mnt/sdcard/download/your app name
FAQ
Q.Where do i upload my latest app?
Ans: Direct download like google drive direct link (please google for more info)
Q.What should i do to inform for latest updates?
Ans: change the value(version of your app) in firebase and value of url
9 Likes
Nik
(Nik)
July 27, 2018, 12:16pm
#2
where is package.Version Name In Block? and if My APP is On google play store then what to do?
1 Like
Shreyash
(Shreyash Saitwal)
July 27, 2018, 1:21pm
#3
Even if your app is on play store then also you can use this method to make your users update the app.
1 Like
Nik
(Nik)
July 27, 2018, 1:37pm
#4
after adding this my app is closing and i can`t find Package1.Version Name.
1 Like
C.J
(Chetan Rajpurohit)
July 27, 2018, 1:45pm
#5
Please send the full information with screenshots of blocks and error
1 Like
Nik
(Nik)
July 27, 2018, 2:41pm
#6
David:
your app name
i did`t understand 3. Notifying Users And Getting URl Processes
Where I Find URL,Save Response,Response File Name Blocks?
1 Like
David
( David Ningthoujam)
July 27, 2018, 3:44pm
#7
There are blocks for saving response in #3 and the url is from firebase so it uses URL to “Get value” block.
David
( David Ningthoujam)
July 27, 2018, 3:45pm
#8
@Shreyash u r right it can be used even if the app is on playstore and no need the package name in this method.
Nik
(Nik)
July 27, 2018, 3:47pm
#9
i mean which block ? Web,Download?
i tried web but nothing happen
David
( David Ningthoujam)
July 27, 2018, 3:47pm
#10
@Nik The version is the value which is on firebase please check your blocks that it is correct
Nik
(Nik)
July 27, 2018, 3:49pm
#12
can you please send me pic of your firebase url? i mean update apk url example
David
( David Ningthoujam)
July 27, 2018, 3:56pm
#13
Let’s clear up. it required two firebase component.
1 for the version and another for the url.
it should be on different tags and bucket
properties
1 for the version
2 for the url
you need to change the value in firebase when the update is available.
Tag=version and value to your app latest version ex. 1.2
and url to “your direct download link” like https://drive.google.com/uc?export=download&id=your id
Nik
(Nik)
July 27, 2018, 4:05pm
#14
i set that but i confuse right now
Firebase Base Url I Said That :-
I Faced Issue :-
David
( David Ningthoujam)
July 27, 2018, 4:07pm
#15
please pm i will help at my best also it will be lot’s of reply
Peter
(Moderator)
July 27, 2018, 4:29pm
#16
Keep the discussion on the forum and not via pm.
1 Like
David
( David Ningthoujam)
July 27, 2018, 4:30pm
#17
the problem is button not showing on choose dialog on his device. previously i got confuse and think it will be lots of reply on this topic so i decided to pm. sorry for that.
Nik
(Nik)
July 27, 2018, 4:34pm
#18
what about button not showing on choose dialog on my device my device is redmi note 4
1 Like
David
( David Ningthoujam)
July 27, 2018, 4:37pm
#19
please open an topic about it
David
( David Ningthoujam)
July 27, 2018, 4:51pm
#20
please check the blocks of #4 (notifier after choosing) its not similar