User Agent
The UserAgent plugin provides functions to set the HTTP user-agent header. For more info about User-Agents, please see the HTTP User-Agent docs.
Requires Cordova plugin: cordova-useragent
. For more info, please see the
User-Agent plugin docs.
Cordovaの問題で困っていますか?

本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、 エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- iOS
利用方法
React
Angular
import { UserAgent } from '@ionic-native/user-agent/ngx';
constructor(private userAgent: UserAgent) { }
...
this.userAgent.set('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36')
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
* this.userAgent.get()
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
* this.userAgent.reset()
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));