Skip to content

App Notification Library for Jailbroken Devices

Notifications You must be signed in to change notification settings

matbrik/libnotifications

 
 

Repository files navigation

libnotifications

App Notification Library for Jailbroken Devices

Requires iOS10+

How to use in your tweak:

#include <dlfcn.h>

@interface CPNotification : NSObject
+ (void)showAlertWithTitle:(NSString*)title message:(NSString*)message userInfo:(NSDictionary*)userInfo badgeCount:(int)badgeCount soundName:(NSString*)soundName delay:(double)delay repeats:(BOOL)repeats bundleId:(nonnull NSString*)bundleId;
@end

void *handle = dlopen("/usr/lib/libnotifications.dylib", RTLD_LAZY);
if (handle != NULL) {                                            
    [objc_getClass("CPNotification") showAlertWithTitle:@"Holy Smokes!"
                                                message:@"This is the message!"
                                               userInfo:@{@"" : @""}
                                             badgeCount:1
                                              soundName:@"can be nil.caff" //research UNNotificationSound
                                                  delay:1.00 //cannot be zero & cannot be < 60 if repeats is YES
                                                repeats:NO
                                               bundleId:@"com.cokepokes.iNutt"];                                     
	dlclose(handle);
}
	

About

App Notification Library for Jailbroken Devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 91.8%
  • Objective-C++ 7.1%
  • Shell 1.1%