When developing an application to run on top of the Pulsar Platform, developers have the freedom to use the wealth of web technology available in the mobile app environment. Pulsar has been successfully used with several popular web frameworks, allowing developers to use some of the same code and techniques they have used in more traditional web development. However, there are a few technologies and methodologies that can be used to improve the developer experience while building a Pulsar-based app.
Testing/Test Data
We encourage the use of a Salesforce Sandbox to test your code in the Pulsar environment.
Debugging your HTML/Javascript
Due to restrictions We recommend
One of the first obstacles most developers run into is the lack of a built-in way to debug their code in-place while it is running within Pulsar.
- Using Promises for continuations
- Keep things modular -- build one library of API calls in the resources
- Use global resources amap
- in code, use 18 character Ids
- date format should be a valid Salesforce date format
Mobile Safari Tips
- In order to have smooth scrolling on iOS Safari, any time you would use CSS
overflow: scroll; --
Make sure to include:-webkit-overflow-scrolling: touch;
This will ensure that your scrolling performance is smooth.
Hiding The Default Navigation Controls
Some developers don't want to see the default Done button and the navigation elements and want to control this themselves. Pulsar provides configuration settings to achieve this. Use the following settings for this purpose.
Name | Hide the Done button on the custom HTML Page |
---|---|
Key | pulsar.docs.hideDoneButton |
Value | TRUE / FALSE |
Default Value (if any) | FALSE |
Compatibility |
|
Description | By default, a user can click on the Done button to close the custom HTML page and get back to Pulsar Home Page or a Pulsar record screen. In some cases, customers would like to hide the done button on that page. This setting will let enable that behavior. |
Notes/Comments |
Name | Hide HTML Navigation Buttons (Back, Forward, Refresh) |
---|---|
Key |
|
Value | TRUE / FALSE |
Default Value (if any) | FALSE |
Compatibility |
|
Description | This setting will hide the back, forward, and refresh buttons if this setting is specified and set to TRUE. |
Notes/Comments |