dongquelu1239 2016-12-06 15:24
浏览 52

在WordPress中使用iOS和Android的不同代码打开页面

I am new as a WordPress developer. I have built one website with WordPress, now I have a problem that I want to open 2 different pages for Android and iOS devices.

I have searched around but did not found what was i looking for..

like:

if iOS then

  this code

if Android

  this second code

Is that possible in PHP? If yes then how?

I also have Android and iOS apps, and I want to open app direct into App Store or Play Store, like when users for both devices click on the link they will redirect to my app in the Play Store or App Store using detection of iOS and Android.

  • 写回答

1条回答 默认 最新

  • dongtan5811 2016-12-06 15:37
    关注

    You should check out this answer: Get operating system info with PHP. You should be able to extract the information you need from this to determine whether a user is viewing your webpage on an Android or iOS device, as well as the various other operating systems on the market.

    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号