# LINE MINI App development guidelines
When developing web applications using LIFF, follow these development guidelines.
LINE MINI App uses a system provided by LIFF. Therefore, abide by the LIFF app development guidelines in the LIFF documentation.
The basic rules for LINE MINI App development are based on the content described in Terms and Policies.
# Prohibiting mass requests to the LINE Platform
Don't over-access LINE MINI Apps via the LIFF scheme (https://liff.line.me/{liffId}
), or send a large number of requests to the LIFF API or the Service message API, for load testing purposes. For load testing LINE MINI Apps, prepare a test environment that doesn't generate a large number of requests to the LINE Platform.
If the rate limit is exceeded, 429 Too Many Requests
will be returned and an error will occur.
# Saving logs
We recommend saving logs for Service message API requests for a certain period of time so that developers themselves can smoothly investigate the cause and scope of a problem when it occurs.
# Service message API request logs
We recommend saving the following information in a log, in addition to the service notification token notificationToken
which is included in the response, when making a request to the Service message API.
- Time when API request was made
- Request method
- API endpoint
- Status codes returned by the LINE Platform
More specifically, save it in a log file using the following format.
Time when API request was made | Request method | API endpoint | Status code |
---|---|---|---|
Mon, 16 Jul 2021 10:20:23 GMT | POST | https://api.line.me/message/v3/notifier/send?target=service | 200 |
Depending on the requirements of the LINE MINI App you're running, the following information, in addition to the above, can be stored for investigation when problems occur.
- Service message API request body
- Response body, other than the service notification token
notificationToken
, returned by the LINE Platform after the API request
We don't provide logs of service message API requests, etc. despite inquiries. Logs should be saved by the developers who are developing the LINE MINI Apps themselves.