Skip to main content
小组

Mobile Tools

This group discusses - Emulator builds for Salesforce mobile app - LWC local dev previews for mobile - Guidance for building mobile ready LWCs
1 条评论
0/9000
0/9000

Hi, 

I am trying to debug a LWC on the emulator and trying to link to safari to capture some logs. However when I open the Safari I couldn't see anything to select on the develop tab. 

9 个回答
  1. 2023年7月7日 19:11

    @Harish Pisapati is this still occurring, even after waiting for a few minutes? If so, not sure just yet on how to troubleshoot since this is in Salesforce App, but please report back and we can go from there.

0/9000
1 个回答
  1. 2022年8月30日 06:51

    Hi @Murugan MM

     

    Xcode only works on macOS, one solution to get Xcode on Windows would be to install macOS on a Windows PC using a virtualization app such as VMware or VirtualBox. Using a virtualization platform gives users the full functionality of Xcode on their Windows machine.

     

    I will provide you with the link. Please go through the link. It will help you to solve your problem.

     

    https://www.net-usb.com/ios-development-windows/#:~:text=Given%20that%20Xcode%20works%20only,Xcode%20on%20your%20Windows%20machine.

     

    Thank you

0/9000

As a client requirement, we are started to build mobile app using Aura components. As per the salesforce mobile debugging tools for Android and ios, we have downloaded them and tried to use them . But when we installed Android Studio and Xcode we found issue in our Laptop/Desktop that it consuming more than 10 GB of harddisk space and it makes the system slow and unable to respond on clicks and move. IS there any other mobile debugging tool available to test our changes?

 

#Salesforce Developer #Mobile App Developmet/react Native

#Mobile

@Mobile Tools

2 条评论
  1. 2022年4月12日 03:11

    Aura components aren't supported in the Field Service Mobile + LWC pilot. They won't work at all. Lightning web components are the supported flavor in Field Service Mobile.

     

    Xcode and Android Studio are pigs, no doubt about it, at least in terms of disk space. But 10 gigs for two complex IDEs, associated secondary tools, the emulator/simulator images, SDK libraries, and so on really isn't that bad, all things considered. Consider that the last iOS upgrade was as large as five gigabytes, and that's essentially what a virtual device image is, and you can see why there's such a large footprint for the tools.

     

    More concerning is the performance issue you describe. Could you provide more details? What system were you running them on? How much memory is installed? How much memory was being consumed overall? What else was running? Did you try rebooting and going directly to e.g. an iOS Simulator? How was performance in that relatively clean environment?

     

    I run Xcode and Android Studio on a MacBook Pro 13" (2020) with 32 gigs of RAM, and while neither runs <sorry> swiftly, they're still quite usable, without any of the issues you described.

     

    Xcode and Android Studio are the only (good) tools available to run virtual devices, and running the virtual device builds of the pilot apps is by far the best debugging experience available. (We know there's plenty of room for improvement in our debugging tools, but it's still the best DX available today.)

     

    While you could pursue other development/debugging tools, the behavior you describe isn't typical or expected. It's a far better effort to try to resolve that, than to try to replace them.

0/9000

I'm running into an issue when installing the Salesforce Mobile App (Chatter) into the simulator. I'm able to drag and drop the app into the simulator (iOS 14.4) and it is created properly. When I click on the app, a white page pop-us up and then the app exits back to iPhone home screen. It seems that I can't even read the EULA disclaimer. Any idea on how to resolve this?

 

@Sue Berry @Michael Alderete 

16 条评论
0/9000

✨ 🌈 New Demos & Instructional Videos now available!! ✨ 🌈

 

View all our great features & qet the simulator & emulator builds up and running in just a few minutes.

 

We have 3 new videos available.

https://www.youtube.com/playlist?list=PLgIMQe2PKPSJsVvAdRvJbot0KjD_XpzT5

  • Mobile Tools Overview: Build, Preview, & Debug with Salesforce Mobile Tools
  • Install & Setup Salesforce mobile app simulator for iOS
  • Install & Setup Salesforce mobile app emulator for Android
4 条评论
  1. 2021年2月18日 19:41
    @Jerome Pijpers

    we know it's not the greatest answer, and that you're far from the only customer who would like to test behavior on iOS, but have limited (or no) access to Macs in your development org.

    We don't have a better answer today, but don't stop asking it, or proposing ideas. It's unlikely that Apple will ever offer Xcode on Windows, but we'd love to hear about clever cloud-based implementations.

0/9000

🚀 🎉 We are excited to announce that the Mobile Extensions for Salesforce CLI is now GA!!!! 🎉

 

Feature Highlights

🎈 Deploy Lightning web components to a local test app for more complete local mobile instant previews.

 

🎈 Download the companion sample app to quickly use the new “deploy to app” option.

 

🎈Preview and debug for mobile with GA & Beta releases of Salesforce mobile app emulator and simulator builds.

 

Go to the Mobile Debugging Tools site for more info. 

https://developer.salesforce.com/tools/mobile-debugging

 

Review the updated docs.

https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.mobile_extensions

0/9000

HI ,

 

Am trying to debug LWC component which needs to be exposed in Salesforce mobile app . But looks like the console.logs are not coming properly

 

1) Have put the Salesforce mobile app build (https://sfdc.co/salesforce-mobile-app-android-emulator) in the emulator (Emulator Pixel 2 api 29) and opened the sandbox and then the LWC component. But logcat (in the android studio) doesn't provide any output of console.log from the lwc. Do we need to make any setting ?

 

2) Have setup the VS code in accordance to the https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.mobile_extensions_vscode_previews . The same component (lwc) which loads perfectly in Salesforce mobile app and the emulator, gets distorted and again no console log appears . Any extra steps we need to follow other than whats mentioned in the https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.mobile_extensions_vscode_previews ?

 

Any help/suggestions will really be appreciable and thanks in advance .

 

- Binayak

2 条评论
0/9000

💥 🗼 ❗️ Preview Lightning web components on mobile locally and within Salesforce - now BETA 💥 🗼 ❗️

 

Salesforce provides powerful tools and resources that enable you to build and debug mobile ready Lightning web components both locally, and from within the Salesforce mobile app virtual device builds.

  • Preview your Lightning web components for mobile locally via Microsoft Visual Studio Code
  • Use Salesforce mobile app virtual device builds to verify your components work well for mobile

 

To find out more, watch the Lightning Web Components on Mobile demo at TDX today under Dev Tools and Languages - https://www.salesforce.com/trailheadx/demos/

 

To get your hands on the tools and get more detailed information check out the links below.

Blog: Mobile Previews For Your Lightning Web Components

0/9000