ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.06k stars 1k forks source link

[Bug]: unable to appendUserAgent #7217

Closed progcode closed 8 months ago

progcode commented 8 months ago

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 5.6.0 @capacitor/core: 5.6.0 @capacitor/android: 5.6.0 @capacitor/ios: 5.6.0

Installed Dependencies:

@capacitor/cli: 5.3.0 @capacitor/core: 5.5.1 @capacitor/android: 5.3.0 @capacitor/ios: 5.5.1

[success] iOS looking great! 👌 [success] Android looking great! 👌

Other API Details

npm: 8.19.4
node: v16.20.2
pod: 1.11.2

Platforms Affected

Current Behavior

Unable to appendUserAgent via capacitor.config.ts file.

/// <reference types="@capacitor/push-notifications" />
/// <reference types="@capacitor/splash-screen" />

import { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
    appId: 'io.x.y',
    appName: 'XyApp',
    webDir: 'dist',
    plugins: {
        SplashScreen: {
            launchShowDuration: 5000,
            launchAutoHide: true,
            backgroundColor: '#ffffffff',
            androidSplashResourceName: 'splash',
            androidScaleType: 'CENTER_CROP',
            showSpinner: true,
            androidSpinnerStyle: 'large',
            iosSpinnerStyle: 'small',
            spinnerColor: '#999999',
            splashFullScreen: true,
            splashImmersive: false,
            layoutName: 'launch_screen',
            useDialog: false
        }
    },
    android: {
        appendUserAgent: 'XyApp'
    },
    ios: {
        appendUserAgent: 'XyApp'
    }
};

export default config;

Expected Behavior

The 'XyApp' string successfully appended to user-agent.

Project Reproduction

-

Additional Information

No response

ionitron-bot[bot] commented 8 months ago

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. Please see the Contributing Guide for how to create a Sample App. Thanks! Ionitron 💙

progcode commented 8 months ago

" If no sample app is provided within 15 days, the issue will be closed."

what a fuck...