Either not enough adhesive put on or adhesive being used is too weak.
For the iPad if the adhesive is strong enough, the usual cause is the dents on the iPad frame's metal corners that would need to be bent back in place.
B7000 Glue is usually used in cases like this where the corner keeps pushing up. The glue takes about a day to set in well with tape to hold it in place for it to set.