Uniapp 获取 iOS bundle id: 通过 H5plus(H5+) API

const getIOSBundleID = () => {
    const clazz = plus.ios.importClass("NSBundle");
    const bundle = clazz.mainBundle();
    const info = bundle.infoDictionary();
    const bundleID = plus.ios.invoke(info, "objectForKey:", "CFBundleIdentifier");
    return bundleID;
}

 拿走不谢

 

 

posted @ 2025-01-15 11:14  本木大人丿  阅读(120)  评论(0)    收藏  举报