无法连接到app storee or Google Play

javascript - redirect to appstore or google play - Stack Overflow
Learn, Share, Build
Each month, over 50 million developers come to Stack Overflow to learn, share their knowledge, and build their careers.
Join the world’s largest developer community.
Display name
Email address
By registering, you agree to the
I will send my clients the link for the app in the following format
(or whatever)
I want this file be somewhere on my server that includes java script code that checks what is the device type and redirects to the convenient store. that is, google play if the device was android based and appstore if the device was ios based.
till now I tried this, but it does not work.
&script type="text/javascript"&
$(document).ready(function ()
if(navigator.userAgent.toLowerCase().indexOf("android") & -1)
window.location.href = '/store/apps/details?id=com.truecaller&hl=en';
if(navigator.userAgent.toLowerCase().indexOf("iphone") & -1)
window.location.href = '/lb/app/truecaller-caller-id-number/id?mt=8';
&/javascript&
8,80194076
1,50542251
closed as off-topic by Hobo Sapiens, , , ,
This question appears to be off-topic. The users who voted to close gave this specific reason:&This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting
before posting.& & Community, T J, Зелёный, Artjom B., Sajeetharan If this question can be reworded to fit the rules in the , please .
the problem is with your script tag and you are missing );
and by the way did you imported jQuery?
&script src="/jquery-latest.min.js" type="text/javascript"&&/script&
$(document).ready(function (){
if(navigator.userAgent.toLowerCase().indexOf("android") & -1){
window.location.href = '/store/apps/details?id=com.truecaller&hl=en';
if(navigator.userAgent.toLowerCase().indexOf("iphone") & -1){
window.location.href = '/lb/app/truecaller-caller-id-number/id?mt=8';
2,85032760
8,80194076
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledLG Help Library: Unable to access the Google Play Store or download app on Google Play Store | LG U.A.E
Afghanistan, Armenia, Azerbaijan, Bahrain, Comoros, Georgia, Kuwait, Oman, Pakistan, Qatar, U.A.E, Yemen
Find help information for your LG product
Learn about product installation, maintenance, and troubleshooting using our search options.
Unable to access the Google Play Store or download app on Google Play Store
&&&&&&&& Symptom
Unable to access the Google Play Store or download app on Google Play Store
&&&&&&&& Cause
Unable to access the Google Play Store or download app on Google Play Store
&&&&&&&& How to fix
1.Go to Apps
2.Open Settings
3.Open General - Apps
4.Swype left and go to ALL
Article Feedback
If you can't find any desired results, please try using the following menu
Customer Feedback
To Help improve
experience we would appreciate you completing our survey.
Don't show this message for one day.Otta | Download in the iTunes App Store for iPhone or Google Play Sore for Android and share your favorite restaurants, books, drinks, music, movies and places. Designed by Ludlow Kingsley
Otta | Download in the iTunes App Store for iPhone or Google Play Sore for Android and share your favorite restaurants, books, drinks, music, movies and places. Designed by Ludlow Kingsley | An Otta is a recommendation you make to your friends. It can be a new restaurant that you loved, a book that swept you away, a bottle of wine that was so good and so affordable — in other words, Hey friends, You Otta Hear Oh! You Pretty Things, a Song by David Bowie.
An Otta is a recommendation you make to your friends. It can be a new restaurant that you loved, a book that swept you away, a bottle of wine that was so good and so affordable & in other words, "Hey friends, You Otta Hear Oh! You Pretty Things, a Song by David Bowie."
What are you waiting for? You Otta get it now!
Brought to you by
Type these letters:
& 2017 Otta对文章打分
[图]虚假评论肆虐:App Store和Google Play一半评论都是假的
(window.slotbydup=window.slotbydup || []).push({
id: '945055',
container: s,
size: '300,250',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '649316',
container: s,
size: '300,250',
display: 'inlay-fix'
阅读 (30266) 评论 (6)
阅读 (27395) 评论 (10)
阅读 (21306) 评论 (6)
阅读 (44837) 评论 (5)
阅读 (37409) 评论 (46)
阅读 (30279) 评论 (6)
Advertisment ad adsense googles

我要回帖

更多关于 app store 的文章

 

随机推荐