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;
}
拿走不谢


浙公网安备 33010602011771号