如下代码 :
问题1:没有设置 abilityName ,这样是不是显示跳转 ?
问题2: 显示跳转,bundleName 和 abilityName 是不是都要设置 ?
let want: Want = {
bundleName: 'com.huawei.xxx',
parameters: {
destinationLatitude: latLng.latitude,
destinationLongitude: latLng.longitude,
}
}
let context = context as common.UIAbilityContext;
context.startAbility(want);
可以看下相关文档介绍:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/explicit-implicit-want-mappings-V5