Cordova – Prevent debugging PhoneGap applications

I created an iOS application using PhoneGap, I learned that it is easy to connect iPhone to Mac, enable Safari debugging on iPhone, and then use Safari on Mac to view all HTML and JavaScript The application.

This is useful for debugging, but when I am ready to deploy my application to the masses, it is really bad in terms of security. It basically means Anyone can immediately see the inside of my application.

Is there any way in Phonegap to disable this type of debugging?

Thank you!

This only applies because get-task-allow authorization is enabled for development builds. Distribution profile This right is not included, so it is not possible to attach the debugger to the app downloaded from the store. So you don’t have to worry about this.

Of course, this does not mean that your code is hidden. You The javascript is still stored on the device, and it is determined that the user can find another way to access it. For example, the user on the jailbroken device has full access to the file system and can view the inside of the App’s container.

I created an iOS application using PhoneGap, and I learned that it is easy to connect an iPhone to a Mac, enable Safari debugging on the iPhone, and then use Safari on the Mac to view all the HTML and JavaScript of the application.

This is useful for debugging, but when I am ready to deploy my application to the masses, it is really bad in terms of security. It basically means that anyone can See the inside of my application immediately.

Is there any way to disable this type of debugging in Phonegap?

Thank you!

This only applies because get-task-allow authorization is enabled for development builds. The distribution configuration file does not include this right, so the debugger cannot be attached to The app downloaded from the store. So you don’t have to worry about this.

Of course, this doesn’t mean your code is hidden. Your javascript is still stored on the device and make sure the user can Find another way to access it. For example, users on jailbroken devices can have full access to the file system and can view the inside of the App’s container.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3763 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.