app: use the platform limit when creating the app

Related to #875.